Linux shelll:syntax error:unexpected end of file
转载请注明文章转载自:Dbabc.Net [http://dbabc.net]
本文链接:http://dbabc.net/archives/2011/12/20/linux-shelll%ef%bc%9asyntax-errorunexpected-end-of-file.shtml
一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-
上一篇: 记录oracle用户的登录信息
下一篇:Linux shell 重定向