为什么shell编程不能使用Windows编辑

换行符:Windows使用\n\r unix使用\n
\r字符被显示为^M
参考连接

在这里插入图片描述
那么怎么使用Windows里的编辑器呢?
在Linux里面编辑shell文件的初始行,然后在用Windows就没问题了

猜你喜欢

转载自blog.csdn.net/thinkthewill/article/details/85842186