Skip to content

Instantly share code, notes, and snippets.

@rpavlovic
Created February 2, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpavlovic/98a512eaa181eae60be9 to your computer and use it in GitHub Desktop.
Save rpavlovic/98a512eaa181eae60be9 to your computer and use it in GitHub Desktop.
search directory of .zip files for file(s) containing text
#!/bin/bash
for file in *.zip; do unzip -c "$file" | grep "text to find" && echo $f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment