Crates.io | wz |
lib.rs | wz |
version | 1.0.3 |
source | src |
created_at | 2022-09-08 18:43:41.064804 |
updated_at | 2022-11-04 11:53:47.456144 |
description | Count words, fast |
homepage | https://github.com/Altair-Bueno/wz |
repository | https://github.com/Altair-Bueno/wz |
max_upload_size | |
id | 661255 |
size | 202,203 |
wz
is a faster alternative to GNU wc with UTF8 support and human readable
output, written in Rust
cargo install wz
cargo install --git https://github.com/Altair-Bueno/wz.git
wz
is heavily optimized for performance. Even if you are counting
multiple files, thanks to rayon. Just look at the benchmarks
Output the results on a nice table, or pipe them to another program
that reads JSON. Stop messing with sed
and awk
!
$ wz *(.) --output json | jq .total.lines
1470
Characters and line lengths are count using UTF8 or UTF161 encoding, meaning that files with non ASCII characters are count correctly
Got a file from an old Macintosh? Change the line break to carriage
returns ('\r'
)
wz macintosh.txt -n cr
See BENCH.md
Run wz --help
to see the full list of options
UTF16 support coming later ↩