Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2007 12:32:33 +0200
From:      Olivier Regnier <oregnier@oregnier.net>
To:        freebsd-questions@freebsd.org
Subject:   Problem with sed to insert a new line
Message-ID:  <46838E41.4060902@oregnier.net>

next in thread | raw e-mail | index | archive | help
Hi everyone,

I have a file called "test" with the following lines:
###
a
b

d
e
f
###

With sed, i want to insert the "c" letter after "b" letter. Logically 
simple, but not for me.

Here is my command : # sed -i.old -e "4i\c"

I have this message : sed: 1: "4i\c": extra characters after \ at the 
end of i command

I need help please.

Thank you :)

Olivier.
**



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46838E41.4060902>