对于不是在linux环境中创建的脚本,执行shell脚本时可能会报错$‘\r’: command not found。解决方案:vim acc.conf.base,然后执行 “:set fileformat=unix” ,并wq保存即可。
解决脚本执行时报错:$‘\r’: command not found
最新推荐文章于 2024-05-09 17:46:54 发布
对于不是在linux环境中创建的脚本,执行shell脚本时可能会报错$‘\r’: command not found。解决方案:vim acc.conf.base,然后执行 “:set fileformat=unix” ,并wq保存即可。