Linux下面运行shell脚本出现unexpected end of file错误
在Linux下运行shell脚本,报错stop.sh: line 12: syntax error: unexpected end of file使用vim打开脚本,执行命令:set fileformat=unix保存退出就可以了。问题解决。原因是Linux下的文件结束符和Windows下的文件结束符不一样。在Windows上编辑的脚本,放在Linux额