a="" for i in {1..254} do ping 192.168.1.$i -c1 -w1 -v | grep "icmp_seq=1" done