does a zgrep exist? (zgrep <> zcat | grep)

James Brister brister at decwrl.dec.com
Fri Feb 15 12:49:03 AEST 1991


I guess this is marginally under comp.unix.shell...

It would be nice to grep through compressed files. Sure, you can do zcat |
grep regexp, but then you loose the ability of grep to tell you the
filename and/or linenumber of a match.  Uncompressing the files before
greping isn't really wanted, cause you may not have the space on disk.

Does such a thing exist?

Thanks

James
--
James Brister                                           brister at decwrl.dec.com
DEC Western Software Lab., Palo Alto, CA    {uunet,sun,pyramid}!decwrl!brister
"Cogito cogito, ergo cogito sum"



More information about the Comp.unix.shell mailing list