LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grep search in zip/rar... etc (https://www.linuxquestions.org/questions/linux-software-2/grep-search-in-zip-rar-etc-326346/)

plainkeyman 05-23-2005 04:09 PM

grep search in zip/rar... etc
 
is there a way to specify/configure/patch grep to be able to include archive files in it's searching?

it would be nice for zip, rar, gz/tar-gz ...etc


thanks

Tinkster 05-23-2005 04:14 PM

Nope.

You'd have to write a script-wrapper that uses e.g.
gunzip, bzcat, tar tvf, ... respectively, and pipe the
results of those to grep.


Cheers,
Tink

eddiebaby1023 05-23-2005 06:05 PM

Redhat and Fedora have zgrep.


All times are GMT -5. The time now is 01:32 AM.