grep replacement

Marnix van Ammers vanam at pttesac.UUCP
Fri Jun 10 15:01:44 AEST 1988


In article <4524 at vdsvax.steinmetz.ge.com> barnett at 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 "/<pattern>/ { p" -e q -e "}"



More information about the Comp.unix.wizards mailing list