ayqjla
Last Updated: February 25, 2016
·
344
· hellovic

Get a list gz files having a certain string without decompressing it

Linux

find . -iname '*.gz' -print0 | xargs -0 zgrep PATTERN

Mac

find . -iname "*.gz" -exec zgrep -l PATTERN {} +