I\'m trying to run a sh script and get the following error on Mac:
sh
/usr/bin/perl^M: bad interpreter: No such file or directory
How
And if you prefer Sublime Text - simply go to View -> Line Endings and check Unix.