Created
April 26, 2020 08:47
-
-
Save calee0219/a9dbe8111179ccfb0287a2580dc7dd27 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 | |
mac=`ip nei | grep 10.10.2. | awk '{ if($5) { print $1 "," $5 } }'` | |
#echo ${mac} | |
set -- ${mac} | |
while [ $# -gt 0 ] | |
do | |
printf $1 | |
printf "\t" | |
curl https://mac-to-vendor-yps2oxobta-uc.a.run.app/`printf $1 | sed s/.*,//` | |
shift | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment