Article View: comp.editors
Article #3523SED Question
From: Susan Maxwell
Date: Tue, 11 Apr 1989 00:43
Date: Tue, 11 Apr 1989 00:43
15 lines
833 bytes
833 bytes
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:
<2360001@hpcuhc.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcuhc!smaxwellShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcuhc!smaxwell From: smaxwell@hpcuhc.HP.COM (Susan Maxwell) Newsgroups: comp.editors Subject: SED Question Message-ID: <2360001@hpcuhc.HP.COM> Date: 11 Apr 89 00:43:33 GMT Organization: Hewlett Packard, Cupertino Lines: 15