Shell Scripting

You can grep inside gzipping files directly using zcat. See below:

find . -name “acc*.gz” -exec zcat “{}” + grep “error”

This is especially useful for grepping logfiles that have been compressed.