Answers for "^m in script bin bash error /bin/bash^m bad interpreter"

C#
3

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

Code answers related to "^m in script bin bash error /bin/bash^m bad interpreter"

C# Answers by Framework

Browse Popular Code Answers by Language