Last active
December 15, 2015 19:19
-
-
Save mjf/5310448 to your computer and use it in GitHub Desktop.
Get MAC vendor according to the oui.txt by IEEE
This file contains hidden or 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
#! /bin/sh | |
# Hint: paragraph and mac can be found in my gists as well. | |
# Cron: 30 4 * * * rm ~/.oui.txt && /usr/local/bin/vendor >/dev/null | |
if ! [ -f ~/.oui.txt ] | |
then | |
wget -qO ~/.oui.txt http://standards.ieee.org/develop/regauth/oui/oui.txt | |
fi | |
paragraph `mac -o $1` < ~/.oui.txt | tr a-z A-Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment