Linux shelll:syntax error:unexpected end of file

At 2011-12-20

一shell脚本运行的时候报:syntax error:unexpected end of file。经查,在最后一行多了^M,可能是由于从Windows传输到Linux下产生的,

通过以下wi进行替换

vi dos.txt
:set fileformat=unix
:w

问题解决,为记。

无觅相关文章插件,快速提升流量

Copyright © Dbabc.Net All Rights Reserved. 本站内容仅代表个人观点, 与其他任何组织或公司无关

-The End-
  • 暂无相关日志

发表评论


*

为你保密









Copyright © Dbabc.Net All Rights Reserved. 本站内容仅代表个人观点, 与其他任何组织或公司无关

Powered by Wordpress and Theme by WPYOU