A simple command-line utility written in Rust that counts words in text files, with proper support for CJK characters.
- Properly counts words in text containing CJK characters, ignoring punctuation marks.
- Supports reading from files or stdin (pipe)
- Can process multiple files at once
cargo install cwccwc filename.txtcwc file1.txt file2.txt file3.txtcat file.txt | cwcOR
echo "Some text to count" | cwccwc -v