for m in `seq 11 11` do for n in `seq 2 254` do ping -c 3 -W 3 192.168.$m.$n &>/dev/null if [ $? -eq 0 ];then echo 192.168.$m.$n is up else echo 192.168.$m.$n is down fi done done wait
原文地址:https://www.cnblogs.com/ruiy/p/12706137.html
时间: 2024-10-08 06:33:43