A newline, also known as a line break or end-of-line (EOL) marker, is a special character or sequence of characters signifying the end of a line of text. The actual codes representing a newline vary across operating systems, which can be a problem when exchanging text files between systems with different newline representations.
Windows uses carriage return – line feed.
UNIX uses line feed.
Macintosh uses carriage return.
The different newline conventions often cause text files that have been transferred between systems of different types to be displayed incorrectly. For example, files originating on Unix or Apple Macintosh systems may appear as a single long line on some Windows programs. Conversely, when viewing a file originating from a Windows computer on a Unix system, the extra CR may be displayed as ^M at the end of each line or as a second line break.
Wikipedia lists some common commands for converting the new line characters:
For example, on Windows NT/2000/XP
TYPE unix_file | FIND "" /V > dos_file
There is also a Java program called CrLf by Joachim Gehweiler which is available HERE (File Size [downloadsize(crlf-2.2-4.exe)]. Downloaded [downloadcounter(crlf-2.2-4.exe)] times).
(This program requires JAVA to be installed).
Another simple method to convert Unix style LF to Windows style CR+LF is to open the file in WordPad, then save the file.