Skip to content

Instantly share code, notes, and snippets.

@loganlinn
Created December 9, 2010 21:43
Show Gist options
  • Save loganlinn/735383 to your computer and use it in GitHub Desktop.
Save loganlinn/735383 to your computer and use it in GitHub Desktop.
for ip in $(gseq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment