Created
October 31, 2016 18:52
-
-
Save olof/436be0ac6f35ee31966c4161ef21c48f to your computer and use it in GitHub Desktop.
little endian hex to big endian dot decimal notation
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
perl -E 'say join(".", map {hex} reverse( shift =~ /(..)/g ) )' 0100007F |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can golf a little bit as well:
This can likely be improved upon...