A little help with SED please - cla

Dave Cornutt dkc at hotlr.ATT
Sat Apr 23 06:49:01 AEST 1988


In article <142700030 at occrsh.ATT.COM> rjd at occrsh.ATT.COM writes:
 > 
 > :I need an sed line (or some gory pipeline) to extract the data between
 > :BEGIN and END.
 > 
 >    Is "awk" gory enough??? :-)   Here's an awk script:
 > ...

Nah, too much trouble.  Try this:

awk -e '/BEGIN/,/END/' foo
-- 
Dave Cornutt, AT&T Bell Labs (rm 4A406,x1088), Holmdel, NJ
UUCP:{ihnp4,allegra,cbosgd}!hotly!dkc
"The opinions expressed herein are not necessarily my employer's, not
necessarily mine, and probably not necessary"



More information about the Comp.unix.wizards mailing list