techxplore
Showing posts with label
bad interpreter
.
Show all posts
Showing posts with label
bad interpreter
.
Show all posts
Wednesday, June 20, 2012
Fixing /bin/bash^M: bad interpreter: No such file or directory
If you write a bash script in Windows and you get this error after FTP'ing and running it in Linux, try the following to fix it
perl -i -pe's/\r$//;' script_name.sh
Older Posts
Home
Subscribe to:
Posts (Atom)