Dương Mạnh Cường
New member
What is r in shell script?
Answer
Bash expects that end-of-line in a script is always and only a newline
character, Unix-style, not a carriage return-newline combination (rn) like you normally see on Windows. Bash thinks the r character is just an ordinary character at the end of the string. … Pass the script through dos2unix to fix the newlines.
Answer
Bash expects that end-of-line in a script is always and only a newline