Convert DOS Line Endings to Unix’s, on a windows machine
(Using tr and sed from the package unxutils.sourceforge.net). I installed all of the utilities into C:\opt\local\wbin and added this path to %path%.
Using notepad, save the text to be cleaned into a textfile called „infile.txt“
then
tr -d \r
and now (if needed) to remove empty lines from the file tmpfile.txt:
sed "/^$/d" tmpfile.txt > outfile.txt