Created
May 24, 2017 06:16
-
-
Save edmhs/868cf34618989a780707206102a1ad35 to your computer and use it in GitHub Desktop.
Search string recursively within zipped files, works good with searching string in TB of data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in 201705/prefix*.zip; do | |
if ( unzip -c "$file" | grep -q "123456789"); then | |
echo "$file" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment