How do I grep a GZ file?

Lê Minh

Member
How do I grep a GZ file?
Answer
Unfortunately, grep doesn’t work on compressed files. To overcome this, people usually advise to first uncompress the file(s), and then grep your text, after that finally re-compress your file(s)… You don’t need to uncompress them in the first place. You
can use zgrep on compressed or gzipped files.
 

Tìm kiếm

Back
Top