摘要:
shell编程中常用的循环:while 和 for,在使用的过程中,会发现一些差别。1. 代码 1 #!/bin/bash 2 3 # while loop 4 echo -en "\t";date 5 cat abc.txt|while read user ip 6 do 7 { 8 ssh -oConnectTimeout=10 $user@$ip "hostname" < /dev/null 9 sleep 10s10 } &11 done12 wait13 echo "This is while loop."14 阅读全文
posted @ 2013-09-08 10:25
trdcaz
阅读(782)
评论(4)
推荐(0)

浙公网安备 33010602011771号