Xref: utzoo comp.unix.questions:6831 comp.unix.wizards:8210 Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!att-ih!pacbell!pb2esac!pttesac!robert From: robert@pttesac.UUCP (Robert Rodriguez) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: A little help with SED please Message-ID: <762@pttesac.UUCP> Date: 3 May 88 01:39:02 GMT References: <5490@sigi.Colorado.EDU> <1988Apr26.011145.27914@lsuc.uucp> Reply-To: robert@pttesac.UUCP (Robert Rodriguez) Distribution: na Organization: Pacific*Bell ESAC, San Francisco, Ca. Lines: 16 Keywords: csplit Summary: csplit In article <1988Apr26.011145.27914@lsuc.uucp> dave@lsuc.UUCP (David Sherman) writes: >murillo@boulder.Colorado.EDU (Rodrigo Murillo) writes: >>I need an sed line (or some gory pipeline) to extract the data between >>BEGIN and END. >[more stuff on "awk" deleted] I'm surprised nobody mentioned csplit. It's perfect for this stuff, as the man page says, csplit is a context splitter. csplit -s -k foo /BEGIN/+1 /END/-1 should work nicely. /* * .signature.... just say no. */