~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
8 lines · 252 B Raw History
use tally::count;

fn main() {
    let path = std::env::args().nth(1).expect("a file to count");
    let text = std::fs::read_to_string(&path).unwrap();
    let c = count(&text);
    println!("{:>8} {:>8} {:>8} {}", c.lines, c.words, c.bytes, path);
}