Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.shell Subject: Re: does a zgrep exist? (zgrep <> zcat | grep) Message-ID: <1991Feb18.075330.15536@convex.com> Date: 18 Feb 91 07:53:30 GMT References: <1991Feb15.232854.13378@robobar.co.uk> <463@bria> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 25 Nntp-Posting-Host: pixel.convex.com From the keyboard of uunet!bria!mike: :Why, when grep assumes stdin if you only supply the regex? : : zcat file.Z | grep regex Guys, the original problem was that zcat *.Z | grep regexp didn't help him identify in which file the match was found. Witness: From brister@decwrl.december.com (James Brister) in : >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. How quickly we forget! --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "All things are possible, but not all expedient." (in life, UNIX, and perl)