The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Greping from zipped files without unzipping kanu_kanu Shell Programming and Scripting 3 03-05-2008 07:01 AM
how to check if file is zipped arushunter UNIX for Dummies Questions & Answers 3 03-07-2007 09:38 AM
sendind a zipped file via email rooh UNIX for Dummies Questions & Answers 2 10-10-2002 07:10 PM
uploading Zipped files get 553 error CoastGuard1970 UNIX for Dummies Questions & Answers 3 06-27-2002 12:09 PM
zipped or unzipped file ted UNIX for Dummies Questions & Answers 3 06-25-2002 05:11 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-31-2008
Registered User
 

Join Date: Oct 2007
Posts: 289
grep thru zipped files

Hi All,

I need to check the logs and grep it. The problem is that the previous days are zipped with *.gz. How do grep on the *.gz?

Thank you in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 07-31-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Code:
zgrep 'pattern' filename.gz
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0