Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site turtlevax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!turtlevax!ken
From: ken@turtlevax.UUCP (Ken Turkowski)
Newsgroups: net.unix
Subject: Re: sed question
Message-ID: <916@turtlevax.UUCP>
Date: Mon, 30-Sep-85 15:10:45 EDT
Article-I.D.: turtleva.916
Posted: Mon Sep 30 15:10:45 1985
Date-Received: Thu, 3-Oct-85 04:29:53 EDT
References: <1492@uwmacc.UUCP>
Reply-To: ken@turtlevax.UUCP (Ken Turkowski)
Distribution: net
Organization: CADLINC, Inc. @ Menlo Park, CA
Lines: 17
Summary: 

In article <1492@uwmacc.UUCP> jwp@uwmacc.UUCP (Jeffrey W Percival) writes:
>sed(1) allows you to give the script on the command line like this:
>
>	sed -e 'script' file1 > file2
>
>Some of the sed commands, like a\ and i\ seem to need additional
>lines of input.  I know that if I use the "-f sedfile" option I
>can stash the commands in a file, but is there a way I can use
>"append" and "insert" with the -e option?

No problem.  Just don't try to do it with the C-shell.  Switch to the
Bourne shell first, open the script with a ' type in multiple lines,
then end it with a '.
-- 
Ken Turkowski @ CADLINC, Menlo Park, CA
UUCP: {amd,decwrl,hplabs,seismo,spar}!turtlevax!ken
ARPA: turtlevax!ken@DECWRL.ARPA