Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!zodiac!deimos!booter From: booter@deimos.ads.com (Elaine Richards) Newsgroups: comp.unix.wizards Subject: Re: grep replacement Message-ID: <4177@zodiac.UUCP> Date: 31 May 88 20:54:43 GMT References: <15030@brl-adm.ARPA> Sender: news@zodiac.UUCP Reply-To: booter@ads.com (Elaine Richards) Organization: Advanced Decision Systems, Mt. View, CA (415) 960-7300 Lines: 11 In article <15030@brl-adm.ARPA> rbj@icst-cmr.arpa (Root Boy Jim) writes: > Al Aho and I are designing a replacement for grep, egrep and fgrep. > The question is what flags should it support and what kind of patterns >I have always thought it would be nice to print only the first match. grep string filename |head -1 Sorry, I could not resist. Why not do an alias instead? ER