小记 "bash: ./a.sh: /bin/bash^M: bad interpreter: No such file or directory"的解决方法

一些人喜欢用vim来写linux shell script, 可是, 有的人喜欢在Windows下用一些方便的编辑器(好比鼎鼎大名的Notepad++)写好, 而后拷贝文件到linux下, 结果呢, 在执行脚本a.sh的时候, 会出现以下问题:linux [plain] view plain copy [taoge@localhost learn_shell]$ ./a.sh bash:
相关文章
相关标签/搜索