我有一个while循环从
$hosts
读取行。while read line
do
ip=$line
check
done < $hosts
我的问题是,我是否可以使用某种方法加快速度,或者一次在10个主机上运行检查,每次检查都在不同的IP上,并在所有$host
中的IP都被检查后结束? 谢谢。