Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.unix.questions Subject: Re: Why does pipeline work this way? Message-ID: <14660017@hpsal2.HP.COM> Date: 18 Dec 89 23:09:55 GMT References: <10064@saturn.ucsc.edu> Organization: HP System Architecture Lab, Cupertino Lines: 10 / hpsal2:comp.unix.questions / cpcahil@virtech.uucp (Conor P. Cahill) / 5:34 am Dec 16, 1989 / If you really want this functionality, get the gnu grep sources and add a parameter to stop looking after the first match (i.e. only show the first matching record). ---------- You could also use sed (as in "sed 'p;q'") which will stop reading the input after the match. Michael