Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!csn!boulder!tramp.Colorado.EDU!lewis From: lewis@tramp.Colorado.EDU (LEWIS WILLIAM M JR) Newsgroups: comp.unix.wizards Subject: Re: easy for some Message-ID: <1991May9.153351.1754@colorado.edu> Date: 9 May 91 15:33:51 GMT References: <6686@male.EBay.Sun.COM> <574@appserv.Eng.Sun.COM> Sender: news@colorado.edu (The Daily Planet) Organization: University of Colorado, Boulder Lines: 9 Nntp-Posting-Host: tramp.colorado.edu In article <574@appserv.Eng.Sun.COM> lm@slovax.Eng.Sun.COM (Larry McVoy) writes: >matthew@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