linux shell脚本无法执行,报错syntax error near unexpected token `$'\r''解决方法

sed -i 's/\r//g' javaInstall.sh

原文地址:https://www.cnblogs.com/javalinux/p/14582007.html