does a zgrep exist? (zgrep <> zcat | grep)
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Tue Feb 19 11:14:48 AEST 1991
In article <1991Feb18.075330.15536 at convex.com> tchrist at convex.COM (Tom Christiansen) writes:
> Guys, the original problem was that
> zcat *.Z | grep regexp
> didn't help him identify in which file the match was found.
Yep. The right solution is to have a single-stream format that can
encode multiple files and various information about the files, including
filenames. Then give programs a -f flag to accept input (and produce
output) in that format.
tar and cpio formats are too verbose in some ways and too restricted in
others. In a coming message I will propose an alternative.
---Dan
More information about the Comp.unix.shell
mailing list