The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-28-2008
openspark openspark is offline
Registered User
  
 

Join Date: Aug 2008
Location: New Jersey
Posts: 22
Modifying command for Tar.gz Files.



Hi,

I use the following command to search for a string in all the files in the directories and sub directories.

find . -type f -print | xargs grep bermun@cial.net

Can someone please cite a method wherin I can find the entries from a list of 300-500 *.gz files by modifying the above command. May be using zgrep

find / -type f -print0 | xargs -r0 zgrep -Fl bermun@cial.net ( something like this )

Please help

Thanks