11/21/2018

Search text inside compressed (zip/gz) files in Linux/Unix

  Mohan       11/21/2018
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.
logoblog

Thanks for reading Search text inside compressed (zip/gz) files in Linux/Unix

Previous
« Prev Post

No comments:

Post a Comment