/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
/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
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
bad interpreter: /bin/python3^M: no such file or directory
dos2unix FILENAME
/bin/bash^M: bad interpreter: No such file or directory
sed -i -e 's/\r$//' create_mgw_3shelf_6xIPNI1P.sh
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us