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.
Excel教程:排序-筛选-切片-插入表格
2.
ZigBee ProfileID,DeviceID,ClusterID
3.
二维码背后不能不说的秘密Part1~
4.
基于迅为i.MX6平台 | 智能家居远程监控系统
5.
【入门篇】ESP8266直连智能音箱(天猫精灵)控制智能灯
6.
MongoDB安装问题
7.
【建议收藏】22个适合程序员多逛逛的网站
8.
【建议收藏】10个适合程序员逛的在线社区
9.
Attention-Based SeriesNet论文读后感
10.
Flutter中ListView复用原理探索
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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 (路径)
>>更多相关文章<<