Xref: utzoo comp.unix.wizards:8946 comp.unix.questions:7315 Path: utzoo!attcan!uunet!husc6!mailrus!tut.cis.ohio-state.edu!osu-cis!killer!vector!chip From: chip@vector.UUCP (Chip Rosenthal) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <325@vector.UUCP> Date: 28 May 88 20:16:03 GMT References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <1036@cfa.cfa.harvard.EDU> <8077@elsie.UUCP> Reply-To: chip@vector.UUCP (Chip Rosenthal) Organization: Dallas Semiconductor Lines: 10 In article <8077@elsie.UUCP> ado@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@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.