Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site ccvaxa.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!willcox
From: willcox@ccvaxa.UUCP
Newsgroups: net.unix
Subject: Re: net.unix
Message-ID: <27200005@ccvaxa.UUCP>
Date: Mon, 8-Oct-84 13:46:00 EDT
Article-I.D.: ccvaxa.27200005
Posted: Mon Oct  8 13:46:00 1984
Date-Received: Fri, 12-Oct-84 07:39:42 EDT
References: <1977@stolaf.UUCP>
Lines: 16
Nf-ID: #R:stolaf:-197700:ccvaxa:27200005:000:551
Nf-From: ccvaxa!willcox    Oct  8 12:46:00 1984

The problem is that sed only reads in one line at a time into its "pattern
space", so there are never any embedded newlines.  There are a number of
different commands that let you play with what is in the pattern space and
"hold space".  The man page describes them.  Your problem, for example,
could be done by putting the following into a file:

	/^\.ul/{
		N
		s/^.*\n/\\fI/
		s/$/\\fP/
	}

and then executing with the line "sed -f  ".  (I find
it much easier to use sed script files than putting it all on the command
line.)