Shell---自动测试局域网内的网络连通状况

#!/bin/bash for i in $(seq 255);do   RE=`ping 192.168.1.$i`   echo $RE >>result.log done