解决:“syntax error near unexpected token `$‘in\r‘‘
问题描述 运行shell脚本shell脚本,运行出错: syntax error near unexpected token $’do\r 或者 syntax error near unexpected token $'in\r 我们先看看这三个者有何区别。很久以前,人们用老式的电传打字机作为输入设备,它使用两个字符来另起新行。一个字符把滑动架移回首位 (称为回车: ,另一个字符把纸上移一行(称为…