【发布时间】:2014-04-01 19:18:43
【问题描述】:
我正在尝试以下方法:
#!/bin/sh
while read LINE
do
diff source_$LINE <(hadoop fs -cat /user/hadoop-path/$LINE/output) > diff_$LINE
done < FILE
从 cmd Line 可以正常工作,但从 shell 会出现错误: 意外标记 `(' 附近的语法错误
有什么帮助吗?
【问题讨论】:
-
尝试将 shebang 行更改为
!#/bin/bash或!#/bin/ksh。祝你好运。
标签: linux shell hadoop diff bin