perl -i.bak -pe "s/\r(?=\n)//" winfile.txt > unixfile.txt