#!/bin/bash netid="128.5.0."n=0for i in $(seq 1 254)do ping -c1 -W1 -n $netid$i &> /dev/null if [ $? == 0 ] then echo -e "$netid$i is UP!" let n+=1 fidoneecho -e "====================\nTotle: $n\n"