/ Published in: Bash

Find a directory withing a compressed file and remove it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find /my/directory -name '*zip' -exec sh -c 'unzip -l {} | grep -q MY_SEARCHPHRASE && rm {}' ';'
Comments
