How to solve “bad interpreter: No such file or directory” June 10, 2023 by Tarik Remove ^M control chars with perl -i -pe 'y|\r||d' script.pl