CentOS 6 convert a file from DOS format in 1 line

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.