zgrep command to grep (search) files that have been compressed in the form of zip or gz. We don't have install this utility specially and this by default available in Linux. We can execute below command to extract matched data in compressed file.


 zgrep "hello" *


Linux utility zgrep command  used to search the contents on compressed or gzipped files.