我有一个while循环读取来自a的行 $hosts
$hosts
while read line do ip=$line check done < $hosts
我的问题是,我可以使用某种方式来加快速度,或者一次对10台主机进行检查,每次检查是在不同的IP上,并在$host检查完所有IP后完成?谢谢
$host
bash shell multithreading while-loop
bash ×1
multithreading ×1
shell ×1
while-loop ×1