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 can I fix this?
Remove ^M control chars with
^M
perl -i -pe 'y| ||d' script.pl
1.4m articles
1.4m replys
5 comments
57.0k users