Xref: utzoo comp.unix.wizards:9214 comp.unix.questions:7499 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pacbell!pb2esac!pttesac!vanam From: vanam@pttesac.UUCP (Marnix van Ammers) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <786@pttesac.UUCP> Date: 10 Jun 88 05:01:44 GMT References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <2978@ihlpe.ATT.COM> <1463@laidbak.UUCP> <4524@vdsvax.steinmetz.ge.com> Reply-To: vanam@pttesac.UUCP (-Root Admin-) Organization: Pacific*Bell ESAC, San Francisco, Ca. Lines: 5 In article <4524@vdsvax.steinmetz.ge.com> barnett@steinmetz.ge.com (Bruce G. Barnett) writes: >There have been times when I wanted a grep that would print out the >first occurrence and then stop. sed -n -e "// { p" -e q -e "}"