Answers for "$'\r': command not found"

5

run.sh: line 39: $'\r': command not found

sed -i 's/\r$//' filename
Posted by: Guest on August-11-2020
3

$'\r': command not found

Inside WSL:

sudo apt-get install dos2unix

Then,

dos2unix [file]

Full documentation:

man dos2unix
#mdem
dos2unix test.sh
Posted by: Guest on August-10-2020
0

$'\r': command not found

sed -i 's/\r$//' filename
Posted by: Guest on October-19-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language