On Sat, 19 Oct 2002 05:46:52 -0500
Stephan Sauerburger <[EMAIL PROTECTED]> wrote:

> s/^--sed-replace-here--$/line one\nline two\nline three/
> 
> just puts that one line in there with literal "n"'s where I put the \n. 

You could do

sed -e 's/^--sed-replace-here--$/line one\
line two\
line three/'

i.e. put literal escaped newlines instead of \n. The perl way looks
nicer though :)

Rupert


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to