Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!haven!udel!new From: new@udel.EDU (Darren New) Newsgroups: comp.editors Subject: Need help with multiline SED script Message-ID: <20819@estelle.udel.EDU> Date: 1 Jun 90 18:43:28 GMT Reply-To: new@ee.udel.edu (Darren New) Distribution: na Organization: University of Delaware Lines: 13 Hi! I'm trying to get sed to patch up the output from a program generator. What I need to do is to delete any periods that are on a line by themselves ONLY IF the previous line does not end with a period. I've tried /.*\.\n[ \t]*\.$/{P;d} # and people talk about TECO looking like line noise! but this does not seem to ever match. Am I missing some magic here? It's not really a problem, as the number of times I have to go back in to add misdeleted periods is minor, but I thought I should know this for the future. Thanks in advance! -- Darren