🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3563

Re: SED Question

#3563
From: John Hevelin
Date: Mon, 17 Apr 1989 06:38
28 lines
624 bytes
This works for me.  Put the following in a script
and call with "sed -f script file"


/PROMPT>/ {
N
/PROMPT>\n[^>]/ {
P
D
p
b
}
/PROMPT>\n>/ {
N
/PROMPT>\n>\n[^<]/ {
P
D
P
D
p
b
}
/PROMPT>\n>\n</ {
s/\n//g
d
}
}
}
Technical Details
Message-ID: <99289@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!ames!oliveb!sun!twinpeaks!jackh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!ames!oliveb!sun!twinpeaks!jackh
From: jackh%twinpeaks@Sun.COM (John Hevelin)
Newsgroups: comp.editors
Subject: Re: SED Question
Message-ID: <99289@sun.Eng.Sun.COM>
Date: 17 Apr 89 06:38:55 GMT
Sender: news@sun.Eng.Sun.COM
Reply-To: jackh@sun.UUCP (John Hevelin)
Organization: Sun Microsystems, Mountain View
Lines: 28