grep replacement
der Mouse
mouse at mcgill-vision.UUCP
Fri Jun 10 19:13:02 AEST 1988
In article <779 at yabbie.rmit.oz>, rcodi at yabbie.rmit.oz (Ian Donaldson) writes:
> From article <3324 at phri.UUCP>, by roy at phri.UUCP (Roy Smith):
>> [A grep option to stop after one match] would certainly speed up
>> things like
>> grep "^Subject: " /usr/spool/news/comp/sources/unix/*
> A simple permutation:
> head -60 /usr/spool/news/comp/sources/unix/* | grep "^Subject: "
> works fairly close to the mark, and doesn't waste much time at all.
Except that it doesn't list the filename along with the match.
der Mouse
uucp: mouse at mcgill-vision.uucp
arpa: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.unix.wizards
mailing list