Ravi Sir's Cards › AWS
Script fails with ^M?
This interview card answers: Script fails with ^M? Windows line ends (CRLF). Delete with tr. The card’s suggested next step is to fix the script.
Read card text
What this card says
What it is
Windows line ends (CRLF).
Why it matters
Delete with tr.
How / example
Fix the script.
tr -d '
' < win.sh > unix.sh