The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM



Thread: vi
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-10-2007
devtakh devtakh is offline
Registered User
 

Join Date: Oct 2007
Posts: 34
use this

without having to go to vi editor, you cud just use use

sed 's/.*$/&\^N/g' filename > outfile


or inside vi, u cud do

:1,$s/.*$/&\^N/g

cheers,
Devaraj Takhellambam
Reply With Quote