Created
March 22, 2019 12:36
-
-
Save shuuji3/ee02c30cbb88f836263e7d31b6a5dd66 to your computer and use it in GitHub Desktop.
Trivial script to convert IEEE OUI list
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
#!/bin/sh | |
# LISENCE: GNU GPL v3 | |
wget http://standards-oui.ieee.org/oui/oui.txt -O /tmp/oui.txt | |
grep -E '^[-0-9A-F]{8}' /tmp/oui.txt | unexpand -a | python -c 'while True: s = input(); print(s.split()[0].replace("-", ":"), " ".join(s.split()[2:]), sep="\t")' | sort > oui-format.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment