Tool -flag considered harmful (was: grep replacement)
Root Boy Jim
rbj at cmr.icst.nbs.gov
Fri Jun 17 01:35:12 AEST 1988
? From: Barry Shein <bzs at bu-cs.bu.edu>
? If people think that filename:linenum is so swell why not have grep
? *only* produce that under all conditions? Ridiculous, right? The
? whole damn argument is ridiculous.
No, Barry, you've got it all wrong! Grep should put out
"filename:byteoffset". Grep should not know about newlines;
there is another tool that translates byte offsets to line numbers.
No, wait! Grep should not even print filename, but merely the argv
index. After all, the calling program should know which filenames
it called grep with.
? -Barry Shein, Boston University
(Root Boy) Jim Cottrell <rbj at icst-cmr.arpa>
National Bureau of Standards
Flamer's Hotline: (301) 975-5688
The opinions expressed are solely my own
and do not reflect NBS policy or agreement
Careful with that VAX Eugene!
More information about the Comp.unix.wizards
mailing list