NodePad++编辑shell脚本,运行报错unexpected end of file/near unexpected token `fi'
NodePad++编辑完shell脚本,直接运行脚本报错:syntax error: unexpected end of filesyntax error: near unexpected token `fi'原因:此.sh文件的格式为dos格式;而linux只能执行格式为unix格式的脚本。在dos/window下按一次回车键实际上输入的是“回车(CR)”和“换行(LF)”,而Linux/uni...
原创
2018-05-31 09:38:10 ·
677 阅读 ·
0 评论