Created
February 4, 2010 21:10
-
-
Save curiousstranger/295107 to your computer and use it in GitHub Desktop.
On OS X, transform MAC format
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 | |
# | |
# Grabs MAC addresses in XXXXXXXXXXXX form from the clipboard and transforms it to xxxx.xxxx.xxxx | |
pbpaste -Prefer txt | perl -pe 's/(\w{4})(\w{4})(\w{4})/\1.\2.\3/;' | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment