syntax error near unexpected token '$'\r''

编辑shell文件报错

syntax error near unexpected token '$'\r''

原来文档格式用的是windows下的格式,切换成Unix格式就好了

猜你喜欢

转载自www.cnblogs.com/Leechg/p/10226014.html