new@udel.EDU (Darren New) (06/02/90)
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