当前位置: 首页 > Linux

解决shell脚本$'-r'-commandnotfound问题

时间:2023-04-06 04:36:01 Linux

导致这个问题的原因是windows下的空行,我们只需要将文件转成unix即可。Centos下执行yuminstalldos2unix,然后执行dos2unix[file],然后执行shell命令