Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: Why does pipeline work this way? Message-ID: <4825@solo9.cs.vu.nl> Date: 18 Dec 89 16:54:35 GMT References: <10064@saturn.ucsc.edu> <1989Dec16.133416.3855@virtech.uucp> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatika, Amsterdam Lines: 15 In article <1989Dec16.133416.3855@virtech.uucp> cpcahil@virtech.uucp (Conor P. Cahill) writes: \... If you really want this functionality, get the gnu grep sources and add \a parameter to stop looking after the first match [...] Or use sed: $ SED=" /$pattern/!d p q " $ sed "$SED" file -- Sci.aquaria votes are only poisson distributed in France. (Alan M Stanier) | Maarten Litmaath @ VU Amsterdam: maart@cs.vu.nl, uunet!mcsun!botter!maart