Created
February 4, 2010 20:55
-
-
Save curiousstranger/295095 to your computer and use it in GitHub Desktop.
Script to convert mac address on clipboard between formats
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 xxxx.xxxx.xxxx form from the clipboard and transforms it to XXXXXXXXXXXX | |
pbpaste -Prefer txt | perl -pe 's/(\w{4}).(\w{4}).(\w{4})/\U\1\2\3/;' | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment