Why does \ r \ n appear as ^ M in vi?
2 answers
http://vim.wikia.com/wiki/File_format
In text editor ( vi file.txt
) mode, you can change line endings using
:set ff=unix
You can use a better text editor like Notepad ++ or NetBeans that automatically uses the unix line ending, or at least has the ability to switch between them correctly.
+1
source to share