Ok i am making a script that will ping all active computers on the network and then output the the IP and hostnames to the screen.
So far i have
echo Machines responding on Network Address: 192.168.1.0
ping -b -c4 192.168.1.0 | grep "icmp_seq=1" | cut -f4 -d' ' | cut -f1 -d:
My problem is that i cant think of a way to get rid of the
WARNING: pinging broadcast address
message, any help would be grateful