I wrote very simple (but useful) script to migrate text files from Windows to Linux.
Here it is:
cat $1 | tr -d '\r' >$1.fixed
Command "./dos2linux.sh text.txt" reads file "text.txt" and writes fixed file to "text.txt.fixed".
It works on Linux/Unix platforms or under Cygwin environment.