syntax error near unexpected token `newline’

如果你的脚本出现    syntax error near unexpected token `newline’   ,那有可能是 脚本是 C shell 的,而你使用的是b shell 。解决办法 切换到c shell下,或者在脚本前加一行   #!/bin/csh 就可以了。

posted @ 2012-02-03 11:20  一根骨头棒子*熬的汤  阅读(9829)  评论(0)    收藏  举报