sed question
carl
carl at bdaemon.UUCP
Tue Oct 1 02:36:31 AEST 1985
> 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?
> --
> Jeff Percival ...!uwvax!uwmacc!jwp
Enter your commands like
$ sed -e '
> one or more lines
> of script including
> appends and inserts' file1 > file2
Note the UNIX secondary prompt and that you don't really need
the -e option.
Carl Brandauer
daemon associates, Inc.
1760 Sunset Boulevard
Boulder, CO 80302
303-442-1731
{allegra|amd|attunix|cbosgd|ucbvax|ut-sally}!nbires!bdaemon!carl
More information about the Comp.unix
mailing list