Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!hc!beta!cmcl2!rutgers!mtunx!whuts!homxb!genesis!hotlr!dkc From: dkc@hotlr.ATT (Dave Cornutt) Newsgroups: comp.unix.wizards Subject: Re: A little help with SED please - cla Message-ID: <333@hotlr.ATT> Date: 22 Apr 88 20:49:01 GMT References: <5490@sigi.Colorado.EDU> <142700030@occrsh.ATT.COM> Reply-To: dkc@hotlr.UUCP (Dave Cornutt) Organization: Not much, but I'm working on it Lines: 15 In article <142700030@occrsh.ATT.COM> rjd@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"