Created
July 7, 2018 09:00
-
-
Save math2001/027748fe45be511b9728152cf5458a9d to your computer and use it in GitHub Desktop.
Ping every ip on the local network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/sh | |
trap 'exit' SIGINT | |
for i in `seq 254`; do | |
(ping 192.168.1.$i -c 1 -w 1 > /dev/null && echo 192.168.1.$i)& | |
done | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment