🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3568

Re: SED Question

#3568
From: John Rupley
Date: Tue, 18 Apr 1989 06:23
39 lines
901 bytes
In article <23224@agate.BERKELEY.EDU>, merlin@violet.berkeley.edu writes:
> I think this does it (script run with "-f"):
> 
> /PROMPT>/ {
> $b eof
> N
> $b eof
> N
> /PROMPT>\n>\n</ {
> d
> b
> }
> p
> d
> }
> b
> : eof
> p
> d
> q

No cigar - try:

xxxPROMPT>
>
<
PROMPT>
>
PROMPT>
>
<

The script deletes what it shouldn't and doesn't what it should.

At least three previous postings give apparently correct solutions.

John Rupley
rupley!local@megaron.arizona.edu
Technical Details
Message-ID: <10332@megaron.arizona.edu>
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ig!arizona!rupley
References: <23224@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ig!arizona!rupley
From: rupley@arizona.edu (John Rupley)
Newsgroups: comp.editors
Subject: Re: SED Question
Summary: no cigar
Message-ID: <10332@megaron.arizona.edu>
Date: 18 Apr 89 06:23:11 GMT
References: <23224@agate.BERKELEY.EDU>
Organization: U of Arizona CS Dept, Tucson
Lines: 39