sed question

Ken Turkowski ken at turtlevax.UUCP
Tue Oct 1 05:10:45 AEST 1985


In article <1492 at uwmacc.UUCP> jwp at 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 at DECWRL.ARPA



More information about the Comp.unix mailing list