linux脚本相关: Syntax error: end of file unexpected (expecting “then“) 或者Syntax error: end of file unexplinux脚本相关: Syntax error: end of file unexpected (expecting "then") 或者Syntax error: end of file unexpected (expecting "do") 提示错误
linux脚本相关: Syntax error: end of file unexpected (expecting "then") 或者Syntax error: end of file unexpected (expecting "do") 提示错误如题情况1、造成该情况的原因:windows下写的脚本,windows和linux的回车换行时不一样的字符,所以脚本在解释时会出现问题。在windows里,换行用的两个符号,回车换\r行符号\n,在linu