txtmet

a command-line text metric utility implemented in both C and Rust

archived C Rust
txtmet terminal output
— github stars

overview

txtmet is a simple and lightweight way to see some metrics about plain-text files. It lets you pick exactly which metrics to output (words, characters, lines, sentences) and nothing else runs.

A good fit for developers who want a fast, zero-dependency CLI and anyone learning C or Rust who wants to see the same algorithm expressed in both languages.

usage

Count words, characters (with and without whitespace), lines, and sentences in any plain-text file.

Pick exactly the metrics you need with simple flags and combine them freely: -wl gives words and lines, -a gives everything.

Zero dependencies. Just compile and run; no runtime or package manager required.

showcase

TXTMET demo