[Ilugc] help: vi editor - to insert new line

  • From: carti@xxxxxxxxxxxxxx (carti)
  • Date: Wed Jan 5 10:09:02 2005

Hi,
I want to insert new line(empty line) at the end of
every line in vi editor.

To be more clearer,
How to insert "tab"(\t as in c programming) and
"newline"(\n as in c programming) through  the
substitution command(1,$s/oldtext/newtext/g).

I have given the sample of original and the modified
text at the end.

Thanks and regards,
carti

P.S: Google did not come to my rescue

Eg:
<original.txt>
line one
line two
line three

<after_replacing.txt>
line one

line two

line three


Other related posts: