Xref: utzoo comp.unix.wizards:8875 comp.unix.questions:7286 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!cfa!wyatt From: wyatt@cfa.harvard.EDU (Bill Wyatt) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <1036@cfa.cfa.harvard.EDU> Date: 28 May 88 05:13:54 GMT References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <4524@vdsvax.steinmetz.ge.com> Organization: Harvard-Smithsonian Ctr. for Astrophysics Lines: 12 > There have been times when I wanted a grep that would print out the > first occurrence and then stop. grep '(your_pattern_here)' | head -1 -- Bill UUCP: {husc6,ihnp4,cmcl2,mit-eddie}!harvard!cfa!wyatt Wyatt ARPA: wyatt@cfa.harvard.edu (or) wyatt%cfa@harvard.harvard.edu BITNET: wyatt@cfa2 SPAN: cfairt::wyatt