for i in $(seq 0 255); do ping -W 0.016 -q -c 1 $1$i 2>/dev/null| grep -i "stat" -A 1 | grep -v "0 " -B 1 done