Xx.sh script execution error xx.sh: Line 8: $ '\ r': command not found a solution

1.yum install dos2unix

2.dos2unix xx.sh

Guess you like

Origin www.cnblogs.com/lyz-2019-12-05/p/12049066.html