Skip to content

Instantly share code, notes, and snippets.

@shuuji3
Created March 22, 2019 12:36
Show Gist options
  • Save shuuji3/ee02c30cbb88f836263e7d31b6a5dd66 to your computer and use it in GitHub Desktop.
Save shuuji3/ee02c30cbb88f836263e7d31b6a5dd66 to your computer and use it in GitHub Desktop.
Trivial script to convert IEEE OUI list
#!/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