linux-shell syntax error: unexpected end of file
来源:互联网 发布:淘宝图库素材网打不开 编辑:程序博客网 时间:2024/05/15 17:04
写shell脚本,如果在windows上面写,通过ftp上传到linux上面
运行时,报:
syntax error: unexpected end of file
是因为脚本文件在windows编写,windows会在每行自动加上一个windows结束符
将文件重新保存成unix格式即可
用vi打开脚本,然后输入:,再输入set fileformat=unix
保存即可
0 0
- shell:syntax error:unexpected end of file
- Linux Shell syntax error: unexpected end of file
- linux-shell syntax error: unexpected end of file
- syntax error near unexpected token 和 Linux Shell syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误
- shell中出现syntax error: unexpected end of file
- Shell 尴尬: syntax error:unexpected end of file
- 解决shell错误:syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误
- shell脚本“syntax error:unexpected end of file”解决方案
- shell入门的拦路虎:syntax error: unexpected end of file
- shell错误一例 syntax error: unexpected end of file
- Shell中EOF出现syntax error: unexpected end of file
- shell中出现syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误
- SHELL syntax error:unexpected end of file 提示错误
- shell脚本“syntax error:unexpected end of file”解决方案
- SHELL脚本“SYNTAX ERROR:UNEXPECTED END OF FILE”解决方案
- STL 之remove,remove_if,remove_copy,remove_copy_if
- 动力火车
- 2011斯坦福大学iOS应用开发教程学习笔记(第八课)viewController生命周期
- C++ 窗口 设计尝试
- Oracle学习笔记(14)----------用户管理
- linux-shell syntax error: unexpected end of file
- 第2章 21
- 相关的技术文档
- windows cmd命令行命令
- 让我们一起来实现一个内存管理工具第二章(类型,cookie信息,构造,数组)
- Ubuntu+Qtcreator2.4.1+opencv2.4.9+安装
- 四种强制类型转换的总结(const_cast、static_cast、dynamic_cast、reinterpreter_cast)
- VC 内联汇编代码 赋值出错, 输出值会变动
- Java中的String为什么是不可变的? -- String源码分析