A little help with SED please

Robert Rodriguez robert at pttesac.UUCP
Tue May 3 11:39:02 AEST 1988


In article <1988Apr26.011145.27914 at lsuc.uucp> dave at lsuc.UUCP (David Sherman) writes:
>murillo at 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.
 */



More information about the Comp.unix.questions mailing list