Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!stl!robobar!ronald From: ronald@robobar.co.uk (Ronald S H Khoo) Newsgroups: comp.unix.shell Subject: Re: does a zgrep exist? (zgrep <> zcat | grep) Message-ID: <1991Feb15.232854.13378@robobar.co.uk> Date: 15 Feb 91 23:28:54 GMT References: Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 11 brister@decwrl.dec.com (James Brister) writes: > 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. Well, if you have it, zcat | grep regexp /dev/stdin would do what you wanted. If you can't hack a /dev/stdin driver into your kernel, then as an alternative you could modify grep to understand "-" as a filename. -- Ronald Khoo +44 81 991 1142 (O) +44 71 229 7741 (H)