05-11-2011
19,
0
Join Date: Jun 2010
Last Activity: 8 June 2011, 11:52 AM EDT
Posts: 19
Thanks Given: 4
Thanked 0 Times in 0 Posts
How to add ^M (control M) in Linux
I would like to add ^M (CTRL V CTRL M) to all lines of the file.
This is easy using unix2dos command in SunOS,
unix2dos commands appends ^M for all the lines in SUnOS
but I dont see the same beahaviou in Linux.
My files on Linu'x to be added with ^M at the end of each line.
is there any way to do this? or any alternatives like sed , awk ?
Thanks for your help.
Regards,