/ Published in: Bash
Find a directory withing a compressed file and remove it.
Expand |
Embed | Plain Text
find /my/directory -name '*zip' -exec sh -c 'unzip -l {} | grep -q MY_SEARCHPHRASE && rm {}' ';'
You need to login to post a comment.
