linux脚本相关: Syntax error: end of file unexpected (expecting “then“) 或者Syntax error: end of file unexp
linux脚本相关: Syntax error: end of file unexpected (expecting "then") 或者Syntax error: end of file unexpected (expecting "do") 提示错误如题情况1、造成该情况的原因:windows下写的脚本,windows和linux的回车换行时不一样的字符,所以脚本在解释时会出现问题。在windows里,换行用的两个符号,回车换\r行符号\n,在linux下只需一个符号\n就可以了..
转载
2020-10-10 19:14:12 ·
4944 阅读 ·
2 评论