Created
August 7, 2017 21:43
-
-
Save dantleech/1445aa317333dd82de94154cb5033b59 to your computer and use it in GitHub Desktop.
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/bash | |
# locate CharName.pm | |
egrep -i "^[0-9a-f]{4,} .*$*" /usr/lib/x86_64-linux-gnu/perl5/5.24/Unicode/CharName.pm | while read h d; do /usr/bin/printf "\U$(printf "%08x" 0x$h)\tU+%s\t%s\n" $h "$d"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't remember where I found the above, but it's pretty cool, first install this library
and then add the above script to your path (e.g.
/usr/local/bin/ugrep
Where
x
is the unicode character that github apparently does not allow in a code block ✔