grep replacement

Chip Rosenthal chip at vector.UUCP
Sun May 29 06:16:03 AEST 1988


In article <8077 at elsie.UUCP> ado at elsie.UUCP (Arthur David Olson) writes:
>> grep '(your_pattern_here)' | head -1
>Doesn't cut it for
>	grep '(your_pattern_here)' firstfile secondfile thirdfile ...

nor if you want to see if a match was found by testing the exit status
-- 
Chip Rosenthal /// chip at vector.UUCP /// Dallas Semiconductor /// 214-450-0400
{uunet!warble,sun!texsun!rpp386,killer}!vector!chip
I won't sing for politicians.  Ain't singing for Spuds.  This note's for you.



More information about the Comp.unix.questions mailing list