![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to search for text in a file and copy file | imeadows | UNIX for Dummies Questions & Answers | 9 | 11-12-2008 09:12 PM |
| How to search and replace text in same file | Vrgurav | Shell Programming and Scripting | 1 | 04-25-2008 06:20 AM |
| Search first line of compressed file | cbreiner | UNIX for Advanced & Expert Users | 1 | 09-05-2007 05:52 PM |
| Search file contain some text | yuimyt | UNIX for Dummies Questions & Answers | 5 | 05-22-2006 04:31 PM |
| Search for repeats in text file - how? | aarondesk | UNIX for Dummies Questions & Answers | 4 | 04-03-2006 04:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I was wondering if there's a way to search within a file that's been compressed. i.e. if file a is inside file a.zip or a.gz, is there a a command that will retrieve the string of data I'm looking for in file a, and list which compressed file it found it in?
Please help! Thanks. Last edited by HLee1981; 07-26-2005 at 03:46 PM.. |
|
||||
|
If you have an upto date versoin of gzip installed you probably have zgrep as well which will do the lot for you.
zgrep foo <compressed file list> |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|