syntax error near unexpected token '$' '' 编辑shell文件报错 syntax error near unexpected token '$' '' 原来文档格式用的是windows下的格式,切换成Unix格式就好了