:-bash: ./ry_stat.sh: /bin/bash^M: bad interpreter: No such file or directory

如果显示这样的错误:-bash: ./ry_stat.sh: /bin/bash^M: bad interpreter: No such file or directory
使用下面这句
sed -i -e ‘s/\r$//’ x.sh

LEAVE A COMMENT