shell:syntax error:unexpected end of file
来源:互联网 发布:sql在表中增加一个字段 编辑:程序博客网 时间:2024/04/29 17:24
执行某bash脚本是发生: syntax error: unexpected end of file
主要问题是由windows下拷出文件到linux下执行的结果,因为windows某些文件格式与Linux并不是完全兼容,两种方法解决:
1.vim处理
:set fileformat=unix
:wq
2使用dos2unix工具
dos2unix 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错误一例 syntax error: unexpected end of file
- Shell中EOF出现syntax error: unexpected end of file
- Linux Shell syntax error: unexpected end of file
- shell中出现syntax error: unexpected end of file
- 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”解决方案
- syntax error near unexpected token 和 Linux Shell syntax error: unexpected end of file
- Sencha Touch 基于html5的桌面和移动开发框架介绍
- mysql 必知必会
- eclipse打开当前文件所在文件夹
- 线程读取串口数据
- (step6.1.2)hdu 1863(畅通工程——最小生成树)
- shell:syntax error:unexpected end of file
- 新浪微博简单开发之简单登陆(二)
- samba与ftp的区别
- SlidesJS基本使用方法和官方文档解释 【Jquery幻灯片插件 Jquery相册插件】
- POJ 1321棋盘问题
- 美丽的英文诗句【1】
- 学习笔记 android读取xml文件过程分析
- EXT.Panel 总结
- Windos下bison的安装