Echo the local IP addresses of the machines on your local network
My Clippings August 27th, 2009 by System
Automatically pulled from My Clippings on NewsGator Online
$ for i in 192.168.1.{61..71};do ping -c 1 $i &> /dev/null;if [[ $? -eq 0 ]]; then echo $i;fi;done
If you need to ssh into a computer on the local network but you’re unsure of the ip to use, then ping them and see if you get a response. If you do, print out the address you got it from. Adjust the range to suit your network.
by David Winterbottom (codeinthehole.com)

