How to remove the Windows carriage returns from a .sh file

If you don’t have time to install the dos2unix utility, you can run the command against the shell script to remove the carriage returns that is added by Windows when the script was created.  Otherwise you will get ;

sh: ./setup.sh: /bin/sh^M: bad interpreter: No such file or directory

sed -i -e 's/\r$//' shellscript.sh