JavaShuo
栏目
标签
执行shell脚本报syntax error: unexpected end of file错误
时间 2020-12-26
标签
Linux
栏目
Unix
繁體版
原文
原文链接
原因: 我的脚本是在windows上创建并编辑的。 windows下的换行是\r\n 而linux下的换行只是\n 解决办法: 显示换行符 将\r\n替换为\n (这里我使用的是Notapad++的替换,快捷键为Ctrl + H) 或者在创建sh文件的时候使用如下设置(使用Notepad++编辑)
>>阅读原文<<
相关文章
1.
shell 报错:syntax error: unexpected end of file
2.
解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
3.
cygwin syntax error: unexpected end of file
4.
SHELL syntax error unexpected end of file 提示错误
5.
Shell常见错误:syntax error: unexpected end of file
6.
thinkphp5.1 Parse error: syntax error, unexpected end of file
7.
php Parse error: syntax error, unexpected end of file
8.
Parse error: syntax error, unexpected end of file in
9.
php出现以下错误: Parse error: syntax error, unexpected end of file in
10.
php 报错 Parse error: syntax error, unexpected end of file in (路径)
更多相关文章...
•
Lua 错误处理
-
Lua 教程
•
错误处理
-
RUST 教程
•
RxJava操作符(五)Error Handling
•
Kotlin学习(二)基本类型
相关标签/搜索
shell脚本
syntax
运行错误
unexpected
end
错误
误报
执行
error
shell脚本语法
Linux
Unix
PHP教程
MySQL教程
PHP 7 新特性
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
深度学习硬件架构简述
2.
重温矩阵(V) 主成份分析
3.
国庆佳节第四天,谈谈我月收入增加 4K 的故事
4.
一起学nRF51xx 23 - s130蓝牙API介绍
5.
2018最为紧缺的十大岗位,技术岗占80%
6.
第一次hibernate
7.
SSM项目后期添加数据权限设计
8.
人机交互期末复习
9.
现在无法开始异步操作。异步操作只能在异步处理程序或模块中开始,或在页生存期中的特定事件过程中开始...
10.
微信小程序开发常用元素总结1-1
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
shell 报错:syntax error: unexpected end of file
2.
解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
3.
cygwin syntax error: unexpected end of file
4.
SHELL syntax error unexpected end of file 提示错误
5.
Shell常见错误:syntax error: unexpected end of file
6.
thinkphp5.1 Parse error: syntax error, unexpected end of file
7.
php Parse error: syntax error, unexpected end of file
8.
Parse error: syntax error, unexpected end of file in
9.
php出现以下错误: Parse error: syntax error, unexpected end of file in
10.
php 报错 Parse error: syntax error, unexpected end of file in (路径)
>>更多相关文章<<