The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-19-2006
Chanakya.m's Avatar
Chanakya.m Chanakya.m is offline
Registered User
  
 

Join Date: Jan 2006
Location: Bangalore, India
Posts: 55
Replace \n with \r\n

Hi Dudes,
I want to replace \n with \r\n through out the file. For this I opened vi editor there tried with " s/\\n/\\r\\n/g ", with this I must be able to satisfy my requirements. But it is searching for the current line (Where cursor is). I need this for entire file. No problem if it is with sed or awk. I dont have much idea on them.


Thanks in advance,

Regards,
Chanakya