Linux系统中,运行Shell脚本,出现了如下错误 脚本名字.sh: line 1: $'\r': command not found 解决办法: 命令:sed -i 's/\r//' 替换你的shell脚本名字.sh