执行shell脚本时提示bad interpreter:No such file or directory的解决办法
转自:https://blog.csdn.net/russ44/article/details/51694047故障现象:在终端直接cd /var正常,在shell脚本中执行则报错。原因是脚本是在windows平台下写的,换行符与linux不同,造成脚本不能正确执行出现bad interpreter:No such file or directory(没有那个文件或目录)的原因,是文件格式...
转载
2018-09-22 16:31:15 ·
10012 阅读 ·
0 评论