#问题描述
执行脚本文件,提示no such file
#解决方法
在windows上编写好脚本文件 在linux上无法执行 想到可能是文件格式得问题
用vim打开该文件
输入 set ff
回车 显示 fileformat=dos
这是执行set ff=unix 保存退出 就可以了
详细出处参考:https://blog.csdn.net/ooooooobh/article/details/82766547
#问题描述
执行脚本文件,提示no such file
#解决方法
在windows上编写好脚本文件 在linux上无法执行 想到可能是文件格式得问题
用vim打开该文件
输入 set ff
回车 显示 fileformat=dos
这是执行set ff=unix 保存退出 就可以了
详细出处参考:https://blog.csdn.net/ooooooobh/article/details/82766547