****.sh: line 10: syntax error: unexpected end of file sh脚本执行出错 检查好多遍没问题::::::::: 操作步骤: 1.vim *.sh 2. :set ff 3.回车:查看文件格式,如果是dos格式,执行第四步 4.讲脚本设置为 unix格式 set ff=unix 5.回车, :wq 保存,然后冲洗执行. done