Solution of Bad Interpreter Error in Linux

Solution for Bad Interpreter Error in Linux are as follow.

If you write a shell Script of linux in windows OS the when you try to execute that script in linux then it comes up with the bin/bash or Bad Interpreter Error.

Error :-
          Bin/Bash or Bad Interpreter

Solution for that
        Execute that script with Following Command
          perl -p -i -e "s/\r//g" <file name>
  
And then try to Execute File.
It will Execute the File.

Comments