运行shell脚本提示syntax error near unexpected token `$'do\r''

运行shell脚本提示

test.sh: line 6: syntax error near unexpected token `$'do\r''
'est.sh: line 6: `do

使用sublime text将文件格式转换为UNIX格式

 

posted @ 2020-05-21 11:25  youxiaoxian  阅读(1472)  评论(0编辑  收藏  举报