Skip to content

Instantly share code, notes, and snippets.

View mpothireddy's full-sized avatar

Manjusha Pothireddy mpothireddy

  • The weather company
  • New ork
View GitHub Profile
#!/bin/bash -e
pattern=$1
for zip in *.zip; do
while IFS=: read fn count; do
echo Zip File : $zip has text file : $fn has $pattern $count times
done < <(zipgrep -c "$1" "$zip" | grep -v :0)
done