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


You need to login to view comments.