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
Footnotes
-
UTF16 support coming later ↩