perl -p -e 's/$/\r/' < unixfile.txt > dosfile.txt