Skip to content

Instantly share code, notes, and snippets.

@gwijayas
Created January 26, 2014 10:42
Show Gist options
  • Save gwijayas/8631041 to your computer and use it in GitHub Desktop.
Save gwijayas/8631041 to your computer and use it in GitHub Desktop.
check ip lan
for ip in $(seq 1 254); do ping -c 1 192.168.0.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.0.$ip UP" || : ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment