unihist(1)
π unihist β the manual page, but make it cute π
okay bestie, so this is unihist, a lil command from the General Commands Manual section (that's section 1, the one for actual runnable commands, iykyk) β¨
π NAME π
unihist β generates a histogram of the characters in a Unicode file. yes it counts your glyphs. it's giving census but for Unicode. π
πΈ SYNOPSIS πΈ
unihist ([option flags])
π¦ DESCRIPTION π¦
so unihist makes a histogram of the characters in its input, and that input must be encoded in UTF-8 Unicode, no exceptions bestie π
by default, for each character it prints:
- the frequency of the character as a percentage of the total
- the absolute number of tokens in the input
- the UTF-32 code in hexadecimal
- and, if the character is displayable, the glyph itself as UTF-8 Unicode π«Ά
the command line flags let you suppress info you don't want. and here's the β¨iconicβ¨ part: if you suppress the percentages and counts, you can literally generate a list of the unique characters in the input. obsessed with that actually π
output comes out ordered by character code. want it sorted by descending order of frequency instead? pipe it into this:
sort -k1 -n -r
and by default unihist handles all of Unicode π but if you want to reduce memory usage and increase speed, it may be compiled so as to handle only the Basic Multilingual Plane (plane 0) by defining BMPONLY. tiny unihist, big energy π§
β¨ COMMAND LINE FLAGS β¨
-cβ suppress printing of counts and percentages. quiet luxury, no numbers π-gβ suppress printing of glyphs. just codes, no pretty pictures π-hβ print usage information. your little help me bestie π-uβ suppress printing of the Unicode code as text. bye bye hex π₯-vβ print version information. who are you,unihist? π
π SEE ALSO π
uniname (1)
π REFERENCES π
- Unicode Standard, version 5.0
π AUTHOR π
Bill Poser billposer@alum.mit.edu
π LICENSE π
GNU General Public License
lowkey a whole mood that a Unicode histogram tool from May, 2008 is still out here slaying πβ¨ no cap, this page is the General Commands Manual edition, May 2008, and it ate. periodt. ππΈπ¦
π¦ where this page comes from
- debian bookworm: uniutils 2.27-2+b1
- debian trixie: uniutils 2.28-2
- ubuntu jammy: uniutils 2.27-2build1
- ubuntu noble: uniutils 2.27-2build1
- ubuntu questing: uniutils 2.28-2
- ubuntu resolute: uniutils 2.28-2build1
- ubuntu stonking: uniutils 2.28-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms