Find a directory withing a compressed file and remove it.


/ Published in: Bash
Save to your folder(s)

Find a directory withing a compressed file and remove it.


Copy this code and paste it in your HTML
  1. find /my/directory -name '*zip' -exec sh -c 'unzip -l {} | grep -q MY_SEARCHPHRASE && rm {}' ';'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.