Skip to content

Instantly share code, notes, and snippets.

@inetfuture
Last active December 20, 2015 07:29
Show Gist options
  • Save inetfuture/6094033 to your computer and use it in GitHub Desktop.
Save inetfuture/6094033 to your computer and use it in GitHub Desktop.
time ( s=192.168.225 ; for i in $(seq 1 254) ; do ( ping -n -c 1 -w 1 $s.$i 1>/dev/null 2>&1 && printf "%-16s %s\n" $s.$i responded ) & done ; wait ; echo )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment