RE: adding lines

From: Kjetil Strønen <kjetil_at_oneteam.no>
Date: Tue, 15 Dec 2009 10:10:31 +0100
Message-Id: <1260868231.3271.69.camel_at_ks-laptop.oneteam.no>



On Tue, 2009-12-15 at 14:22 +0530, Noor Mulla wrote:
> In the below cmd \n is not going to newline.. is the syntax fine
>
>
>
> sed -e "s/^load\ data/unrecoverable\nload\ data/g" \

Hmm. It depends on the sed-version, it seems. It works fine on the linux-boxes I have tried, but apparently not in your version of sed.

Waldirio suggested using



-e "1i UNRECOVERABLE"

to insert UNRECOVERABLE at line 1, maybe that works better in your environment.

--Kjetil

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Dec 15 2009 - 03:10:31 CST

Original text of this message