Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grep a zipped file

Status
Not open for further replies.

minus0

Programmer
Feb 20, 2003
73
US
Hey all,

I have a buncha files that are zipped up (.gz files) on a unix box and I am trying to run a grep command on these zip files but I dont want to unzip the files and then run the grep. I did this a long time ago but then forgot how I did it. Any clues?

Regards
-0
 

cat file | gunzip -c | grep blabla

Or something like that.

--Trifo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top