Skip to content

Instantly share code, notes, and snippets.

@pgharios
Created November 17, 2016 14:12
Show Gist options
  • Select an option

  • Save pgharios/b20284a26bd53e4e61d64d2d5cf8ae33 to your computer and use it in GitHub Desktop.

Select an option

Save pgharios/b20284a26bd53e4e61d64d2d5cf8ae33 to your computer and use it in GitHub Desktop.
#!/bin/bash
for ip in $(seq 1 254);do
ping -c 1 10.11.1.$ip | grep "bytes from" | cut -d" " -f 4 | cut -d":" -f 1 &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment