Skip to content

Instantly share code, notes, and snippets.

@exodist
Created February 8, 2010 17:13
Show Gist options
  • Save exodist/298367 to your computer and use it in GitHub Desktop.
Save exodist/298367 to your computer and use it in GitHub Desktop.
for i in `seq 1 254`; do echo -n "."; ping -c 1 -w 1 192.168.0.$i > /dev/null; if [ $? -eq 0 ]; then echo -n " $i "; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment