社区
Linux/Unix社区
帖子详情
Syntax error: end of file unexpected (expecting "fi")
__TONG__
2014-05-25 03:16:57
unix小白一枚,试过用unix2dos命令转化过未果,请教各位大神。在ubuntu32位虚拟机上运行的。
...全文
623
3
打赏
收藏
Syntax error: end of file unexpected (expecting "fi")
unix小白一枚,试过用unix2dos命令转化过未果,请教各位大神。在ubuntu32位虚拟机上运行的。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
__TONG__
2014-05-25
打赏
举报
回复
问题已解决- -
__TONG__
2014-05-25
打赏
举报
回复
__TONG__
2014-05-25
打赏
举报
回复
linux脚本相关:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“) 或者
Syntax
error
:
end
of
fi
le
unexp
linux脚本相关:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 或者
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"do") 提示错误 如题情况 1、造成该情况的原因: windows下写的脚本,windows和linux的回车换行时不一样的字符,所以脚本在解释时会出现问题。 在windows里,换行用的两个符号,回车换\r行符号\n,在linux下只需一个符号\n就可以了. .
Linux: scripts/build-info.sh: 31:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“) 解决方案
Linux: scripts/build-info.sh: 31:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 解决方案
linux ubuntu bash shell报错 xxx.sh:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“)
代码: # creat log dir if it not exists logDir="./ckpt/"$timeDir if [ ! -d $logDir ]; then mkdir $logDir else echo $logDir exist
fi
报错: $ sh run.sh : not foundrun.sh: run.sh: 16: run.sh:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 解决: 需要转换脚
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“)
solve:
解决执行脚本报
syntax
error
:
un
expect
ed
end
of
fi
le
或
syntax
error
near
un
expect
ed
token `
fi
'错误的问题
我们在编辑Linux服务器上的文件时,如果直接在Linux环境下编辑的话,比较麻烦,大段粘贴格式比较乱,还得自己一行一行去调整,因此会选择用编辑器来编辑我们Linux环境下的文件,我用的是NodePad++,大家可以参考http://blog.csdn.net/u012453843/article/details/52987666这篇博客来学习如何使用NodePad++来编辑Linux系统的文件。
Linux/Unix社区
23,224
社区成员
74,537
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章