$‘\r‘: command not found 出错
Linux 下运行脚本 常见错误之一 $’\r’: command not found 出错问题在Windows下编写好sh文件后,在Linux下运行会报错:bash: $’\r’: command not found这是因为Windows系统的文件换行使用的是\r\n,而Unix系统是\n解决只需要在Linux下使用vim打开文件,然后使用命令:set ff=unix即可# 使用vim打开文件vim aaa.sh:set ff=unix:wqDown!...
原创
2021-12-23 16:39:20 ·
981 阅读 ·
1 评论