Usage:
uni [-n] <search> search for codepoints with names matching <search>
uni [-n] /regex/ search for codepoints with names matching regular expression /regex/
uni [-p] U+<xxxx> display codepoint U+<xxxx>
uni [-c] <string> display each codepoint in <string>
uni -x <hex> decode UTF-8 string from <hex> and display codepoints if valid
Other flags:
-8 display UTF-8 sequences alongside codepoints
-16 display UTF-16 sequences alongside codepoints
Search for codepoints containing a word in their name:
% uni dog
โบจ U+2EA8 CJK RADICAL DOG
โฝ U+2F5D KANGXI RADICAL DOG
๐ญ U+1F32D HOT DOG
๐ U+1F415 DOG
๐ถ U+1F436 DOG FACE
๐ฆฎ U+1F9AE GUIDE DOG
Search for codepoints whose name matches a regular expression:
% uni /^snow/
โ U+2603 SNOWMAN
โ U+26C4 SNOWMAN WITHOUT SNOW
โ U+2744 SNOWFLAKE
๐ U+1F3C2 SNOWBOARDER
๐ U+1F3D4 SNOW CAPPED MOUNTAIN
Display a specific codepoint:
% uni U+1f98a
๐ฆ U+1F98A FOX FACE
Decode a hexadecimal string as a sequence of codepoints:
% uni -x 6b69cc81207475cc9bcca3
k U+006B (6B) LATIN SMALL LETTER K
i U+0069 (69) LATIN SMALL LETTER I
โฬ U+0301 (CC 81) COMBINING ACUTE ACCENT
U+0020 (20) SPACE
t U+0074 (74) LATIN SMALL LETTER T
u U+0075 (75) LATIN SMALL LETTER U
โฬ U+031B (CC 9B) COMBINING HORN
โฬฃ U+0323 (CC A3) COMBINING DOT BELOW
(Vietnamese for "characters".)
Display the codepoints which make up a string:
% uni -c ๐ณ๏ธโ๐
๐ณ U+1F3F3 WAVING WHITE FLAG
U+FE0F VARIATION SELECTOR-16
U+200D ZERO WIDTH JOINER
๐ U+1F308 RAINBOW
Display a character map:
% uni -m 2580-25ff
0 1 2 3 4 5 6 7 8 9 A B C D E F
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2580 โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ
2590 โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
25a0 โ โ โก โข โฃ โค โฅ โฆ โง โจ โฉ โช โซ โฌ โญ โฎ โฏ
25b0 โ โฐ โฑ โฒ โณ โด โต โถ โท โธ โน โบ โป โผ โฝ โพ โฟ
25c0 โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ
25d0 โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
25e0 โ โ โก โข โฃ โค โฅ โฆ โง โจ โฉ โช โซ โฌ โญ โฎ โฏ
25f0 โ โฐ โฑ โฒ โณ โด โต โถ โท โธ โน โบ โป โผ โฝ โพ โฟ
uni
draws heavy inspiration from the Perl utility App::Uni.