Answers for "/bin/bash^M: bad interpreter: No such file or directory"

2

/bin/bash^M: bad interpreter: No such file or directory

if you cannot run a script called yourScript.sh
run the following command in terminal

sed -i -e 's/\r$//' yourScript.sh

Then your script should run
Posted by: Guest on August-13-2021
1

bin/bash bad interpreter

#The ^M is a carriage return character. Linux uses the line feed character to mark the end of a line, whereas Windows uses the two-character sequence CR LF. Your file has Windows line endings, which is confusing Linux.
#remove the cariage character

sed -i -e 's/\r$//' NAME-OF-FILE.sh
Posted by: Guest on August-04-2020
1

bad interpreter: /bin/python3^M: no such file or directory

dos2unix FILENAME
Posted by: Guest on July-10-2020
0

/bin/bash^M: bad interpreter: No such file or directory

sed -i -e 's/\r$//' create_mgw_3shelf_6xIPNI1P.sh
Posted by: Guest on July-12-2021

Code answers related to "/bin/bash^M: bad interpreter: No such file or directory"

Browse Popular Code Answers by Language