#ascii #count #tsur

bin+lib tsur

Count ASCII characters in file(s)

6 releases

0.1.6 Oct 21, 2020
0.1.4 Oct 21, 2020

#212 in Text processing

39 downloads per month

MIT/Apache

12KB
229 lines

Tsur (tsur)

Tsur is a character counter tool.

Examples

# count all ascii characters in text.txt
# and output in (default) ascending order, by value
tsur -f text.txt count -c

# count all ascii characters in text.txt
# and output in descending order, by values
tsur -f text.txt count -c -s vdesc

# count all ascii characters in text.txt
# and output in descending order, by keys
tsur -f text.txt count -c -s kdesc

# count all ascii characters in text.txt
# and output in ascending order, by keys
tsur -f text.txt count -c -s vasc

# cout all ascii characters in t1.txt t2.txt
# and output in ascending order, by values
tsur -f t1.txt t2.txt count -c

Dependencies

~790KB
~12K SLoC