Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altair-bueno/wz
wz is a faster alternative to GNU wc with UTF8 support and human readable output
https://github.com/altair-bueno/wz
bytes characters counter lines rayon rust utf-8 wc words
Last synced: about 2 months ago
JSON representation
wz is a faster alternative to GNU wc with UTF8 support and human readable output
- Host: GitHub
- URL: https://github.com/altair-bueno/wz
- Owner: Altair-Bueno
- License: mit
- Created: 2022-09-08T18:04:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-01T02:13:43.000Z (about 1 year ago)
- Last Synced: 2024-10-06T05:21:52.857Z (3 months ago)
- Topics: bytes, characters, counter, lines, rayon, rust, utf-8, wc, words
- Language: Rust
- Homepage: https://crates.io/crates/wz
- Size: 1.17 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Wortzahl! Count words **fast**
`wz` is a faster alternative to GNU wc with UTF8 support and human readable
output, written in Rust![wz](resources/wz.png)
# Installation## Cargo
```sh
cargo install wz
cargo install --git https://github.com/Altair-Bueno/wz.git
```# Features
## It's fast!
`wz` is heavily optimized for performance. Even if you are counting
multiple files, thanks to [rayon]. [Just look at the benchmarks](BENCH.md)## Human readable and machine readable formats
Output the results on a nice table, or pipe them to another program
that reads JSON. Stop messing with `sed` and `awk`!```sh
$ wz *(.) --output json | jq .total.lines
1470
```## Multiple encoding support
Characters and line lengths are count using UTF8 or UTF16[^1] encoding,
meaning that files with non ASCII characters are count correctly## Multiple line breaks support
Got a file from an old Macintosh? Change the line break to carriage
returns (`'\r'`)```sh
wz macintosh.txt -n cr
```# Performance
See [BENCH.md](BENCH.md)
# Usage
Run `wz --help` to see the full list of options
[rayon]: https://crates.io/crates/rayon
[^1]: UTF16 support coming later