Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: sed question Message-ID: <2287@solo11.cs.vu.nl> Date: 12 Apr 89 18:19:43 GMT References: <250001@hpcuhc.HP.COM> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 24 smaxwell@hpcuhc.HP.COM (Susan Maxwell) writes: \ LINE I: PROMPT> \ LINE I+1: > \ LINE I+2: < \Whenever I see this series, I want to delete ALL THREE lines. sed -n ' /^PROMPT>$/{ h n H /^>$/{ n /^<$/b H } g } p ' -- "If it isn't aesthetically pleasing, |Maarten Litmaath @ VU Amsterdam: it's probably wrong." (jim@bilpin). |maart@cs.vu.nl, mcvax!botter!maart