平台崩溃故障shell脚本问题

<1>如何解决for循环嵌套问题?

i161 admin # for x in `cat tongjidisk`;do ssh $x echo -----------------------$x------------------------; ssh $x for z in a b c d e f g h;do smartctl -i /dev/sd$z|grep "Serial Number:"
-bash: syntax error near unexpected token `do'

posted @ 2015-07-07 11:40  arun_yh  阅读(232)  评论(0编辑  收藏  举报