🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3544

Re: SED Question

#3544
From: Susan Maxwell
Date: Fri, 14 Apr 1989 16:44
18 lines
1007 bytes
/ hpcuhc:comp.editors / smaxwell@hpcuhc.HP.COM (Susan Maxwell) /  5:43 pm  Apr 10, 1989 /

Got a sed question for you:  I'm creating a sed filter to mask out and
delete unwanted characters in a trace file.  I'm having trouble with this
configuration:

        LINE I:    PROMPT>
        LINE I+1:  >
        LINE I+2:  <

Whenever I see this series, I want to delete ALL THREE lines.  I can't
create a pattern /PROMPT\>\\n\>\\n\</d   as far as I can tell, because
sed won't allow patterns to span lines.  Is there a way to do this, without
resorting to awk or ed?   

Susan Maxwell

----------
Technical Details
Message-ID: <2360002@hpcuhc.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhc!smaxwell
References: <2360001@hpcuhc.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhc!smaxwell
From: smaxwell@hpcuhc.HP.COM (Susan Maxwell)
Newsgroups: comp.editors
Subject: Re: SED Question
Message-ID: <2360002@hpcuhc.HP.COM>
Date: 14 Apr 89 16:44:38 GMT
References: <2360001@hpcuhc.HP.COM>
Organization: Hewlett Packard, Cupertino
Lines: 18