easy for some

LEWIS WILLIAM M JR lewis at tramp.Colorado.EDU
Fri May 10 01:33:51 AEST 1991


In article <574 at appserv.Eng.Sun.COM> lm at slovax.Eng.Sun.COM (Larry McVoy) writes:
>matthew at gizmo.UK.Sun.COM (Matthew Buller - Sun EHQ - MIS) writes:
>> problem: to extract text between start and end patterns in a file
... more problem description
>/bin/sh, usage shellscript start_pat stop_pat [files...]
>
... complex shell and perl programs to do

	sed -n '/pattern1/,/pattern2/p' source_file > new_file



More information about the Comp.unix.wizards mailing list