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