Created
May 8, 2017 14:47
-
-
Save heywoodlh/fc9fe6a8641d33dc43aa59b8484b9ea6 to your computer and use it in GitHub Desktop.
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/env bash | |
IP=$(sudo arp-scan --localnet --numeric --quiet --ignoredups | grep -E '([a-f0-9]{2}:){5}[a-f0-9]{2}' | awk '{print $1}') | |
echo $IP | fmt -w 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment