Article View: comp.editors
Article #3543Re: Re^2: SED Question
From: Danny
Date: Fri, 14 Apr 1989 13:01
Date: Fri, 14 Apr 1989 13:01
13 lines
834 bytes
834 bytes
Uh,
Why not use the sed comma operator? Like:
sed '/^PROMPT>/,/^>/d' file
I got the impression that the original poster didn't care WHAT
lay between the first and last match lines.
Danny
--
Daniel S. Cox
(seismo!gatech!itm!danny)
Technical Details
Message-ID:
<1290@itm.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!itm!dannyReferences:
<2360001@hpcuhc.HP.COM> <38564@bbn.COM> <2292@solo11.cs.vu.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!itm!danny From: danny@itm.UUCP (Danny) Newsgroups: comp.editors,comp.unix.questions Subject: Re: Re^2: SED Question Keywords: sed, doesn't sed syntax already support this directly? Message-ID: <1290@itm.UUCP> Date: 14 Apr 89 13:01:51 GMT References: <2360001@hpcuhc.HP.COM> <38564@bbn.COM> <2292@solo11.cs.vu.nl> Reply-To: danny@itm.UUCP (Danny) Organization: In Touch Ministries, Atlanta, GA Lines: 13