Path: 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 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