often text files provided from DOS / Windows machines, when opened in a Unix/Linux environment, are full of lines ending with ^M. While this does not hurt anything, it's ugly and annoying esp. if you are editing those files.
the dos2unix / unix2dos utility is designed to clean this up, and it's very easy
my_unix_host# dos2unix dosfile.txt
done