Ubuntu Guide shows you how to convert a text file between Windows, Mac OS X, and Ubuntu Linux
Text files created in Windows and Linux have different line endings. In Windows it is ^M$ (CR-LF) and in Linux it is $ (LF). It causes text files come from different system cannot be read perfectly well by text editor.Convert Text file Format between Windows/Mac and Ubuntu Linux