grep replacement

Bill Wyatt wyatt at cfa.harvard.EDU
Sat May 28 15:13:54 AEST 1988


> 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 at cfa.harvard.edu
         (or)  wyatt%cfa at harvard.harvard.edu
      BITNET:  wyatt at cfa2
        SPAN:  cfairt::wyatt 



More information about the Comp.unix.wizards mailing list