Re: Problem with sed to insert a new line

2007-06-28 Thread Olivier Regnier
Andrew Pantyukhin a écrit : On 6/28/07, Olivier Regnier <[EMAIL PROTECTED]> wrote: 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.

Re: Problem with sed to insert a new line

2007-06-28 Thread Andrew Pantyukhin
On 6/28/07, Olivier Regnier <[EMAIL PROTECTED]> wrote: 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 me

Problem with sed to insert a new line

2007-06-28 Thread Olivier Regnier
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 th