grep replacement

Elaine Richards booter at deimos.ads.com
Wed Jun 1 06:54:43 AEST 1988


In article <15030 at brl-adm.ARPA> rbj at 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



More information about the Comp.unix.wizards mailing list