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

运行shell脚本提示

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

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

原文地址:https://www.cnblogs.com/xiaoxianxianxian/p/12929537.html