Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site stolaf.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!stolaf!berge From: berge@stolaf.UUCP (Eric Berge) Newsgroups: net.unix Subject: net.unix Message-ID: <1977@stolaf.UUCP> Date: Fri, 5-Oct-84 20:06:20 EDT Article-I.D.: stolaf.1977 Posted: Fri Oct 5 20:06:20 1984 Date-Received: Sun, 7-Oct-84 02:35:47 EDT Organization: St. Olaf College, Northfield MN Lines: 34 {} I was wondering if this is a chronic problem with sed. It seems that I cannot get sed to match patterns with an imbedded newline. I have talked to some other avid users of sed and they seem to have the same problem. According to the documentation, the sequence '\n' will match a newline imbedded in a string. So this is what I tried: I wanted to match: .ul followed by anything on the next line and convert it to \fIfollowed by anything on the next line\fR so I tried: sed 's/^\.ul\n\(.*\)$/\\fI\1\\fR/' I even tried simple examples to try to get it to work, but to no avail. Can anyone help me out? -- "That which does not kill, can only make us stronger." -- Nietzsche Eric Berge ...{ihnp4|decvax}!stolaf!berge