sed question

jpn at teddy.UUCP jpn at teddy.UUCP
Wed Oct 2 05:26:47 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.
>
>Enter your commands like
>
>	$ sed -e '
>	> one or more lines
>	> of script including
>	> appends and inserts' file1 > file2
>
Or, if you are a csh user:

       % sed -e '\
       one or more lines of script each terminated by a backslash \
       note: no further prompts will be issued \
       until a line without a backslash' file1 > file2



More information about the Comp.unix mailing list