标签:
#!/bin/bash for i in `seq 1 254` do { ping -c2 192.168.1.$i &>/dev/null if [ $? != 0 ];then echo "192.168.1.$i is not used" fi } done
检测局域网中还可用的ip地址
原文地址:http://www.cnblogs.com/zejin2008/p/4922737.html