bash脚本运行出现未知错误

来源:互联网 发布:python 爬虫库推荐 编辑:程序博客网 时间:2024/05/16 11:48

-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directory
vim file
查看文件格式
set ff?
如果是dos
set ff=unix
搞定

阅读全文
0 0