bad interpreter: No such file or directory
If you are trying to run a shell script or a php script using the command line interface and you see this:
bad interpreter: No such file or directory
It may be that your lines are encoded for PC and not for unix. Here is how to fix:
perl -i -pe's/r$//;' (file name here)