This simple command line 1 liner can convert a file from an annoying “DOS” format to Linux
sed -i 's/\r//' myfile
This can be helpful for files downloaded from an IIS server such as a shell script that will throw syntax errors when run because of the extra characters that the DOS format will put in.
dos2unix and unix2dos
and mac2unix if you’re into that sort of thing