![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| modifying grep to return latest files | ragha81 | Shell Programming and Scripting | 5 | 04-02-2009 12:16 PM |
| modifying grep to get files only within last 2 hrs | ragha81 | Shell Programming and Scripting | 3 | 01-11-2007 07:11 PM |
| modifying C file and linking back to project files | bruins2005 | UNIX for Dummies Questions & Answers | 1 | 06-23-2006 12:08 AM |
| Perl - Appending/Modifying Excel files | srinivay | Shell Programming and Scripting | 2 | 01-10-2005 06:46 AM |
| How can I ... (Modifying large ASCII files) | hviktor | UNIX for Dummies Questions & Answers | 2 | 07-20-2001 11:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
Should work without any modification. At least here, zgrep doesn't complain if you give it files which are not gzipped (although restricting to -name '*.gz' might be a good idea for performance reasons).
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|