Can you grep a zipped file?

Can you grep a zipped 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