导致这个问题的原因是windows下的空行,我们只需要将文件转成unix即可。Centos下执行yuminstalldos2unix,然后执行dos2unix[file],然后执行shell命令
解决shell脚本$'-r'-commandnotfound问题相关文章