line 1: $'\r ubuntu .sh code example Example: run.sh: line 39: $'\r': command not found sed -i 's/\r$//' filename