How can I convert newline [ line break or end-of-line (EOL) character ] between Unix and Windows text files?
Almost all Unix commands and text editor may display the EOL with Ctrl-m ( ^M ) characters at the end of each line for all text files created on MS-Windows operating systems.
MS-Windows may not display line feed or EOL for all text files created on UNIX operating systems.
Please note that the cat command with the -v option is used to display all non-printing characters such as ^ and M- notation, except for LFD and TAB.
Use sed, tr and perl commands to convert between Unix and Windows text files.
This saved me a lot of effort.
it replaces line endigs in Linux, so that Windows Notepat can understand, where starts new line. Befor that command Notepad shows everything in one long line, however in Linux there were multiple lines.