On Sat, 19 Oct 2002 05:46:52 -0500 Stephan Sauerburger <stephan@sauerburger.org> 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