shell报错:未预期的符号***附近有语法错误 1、安装dos2unix(我的centos命令: yum install dos2unix)2、执行命令:dos2unix 文件名.sh 3、执行命令:bash -n 文件名.sh (检查语法错误)