Last active
January 10, 2018 15:07
-
-
Save gregoryvit/2f711a4d8e8994a504bdac962cbe4dea to your computer and use it in GitHub Desktop.
Print unicode code of symbol from clipboard (macOS)
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/bash | |
echo -n "$(pbpaste)" | iconv -f utf-8 -t utf-32be | xxd -p | sed 's/^0/0x/' | xargs printf 'U+%04X\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use: