#word #counting #command-line-tool #frequencies #utility #sorting #unix-style

app wf

A Unix-style command-line utility for counting word frequencies

6 releases

Uses old Rust 2015

0.2.3 Jan 27, 2022
0.2.2 Oct 28, 2018
0.2.0 Sep 20, 2018
0.1.1 Dec 6, 2016
0.1.0 Jan 18, 2016

#6 in #frequencies

AGPL-3.0

16KB
111 lines

wf

Crates.io Build Status

A Unix-style command line utility for counting word frequencies.

Usage

wf [options]

Reads stdin and outputs newline delimited rows containing each unique word and the number of times it appears, seperated by a space.

Options:

-n --nums           Include numbers
-s --sort           Sort output alphabetically by words (incompatible with -f)
-f --freq           Sort output but most to least frequent (incompatible with -s)
-h --help           Display usage information

Installation

To install the wf binary, you can now do the following with an up-to-date version of cargo:

cargo install wf

Development

This project uses clippy, and Travis CI will check all PRs and branches against it. It is advisable then to install this and check locally before submitting a PR.

License

Copyright 2018 by Annaia Berry This project is licensed with the Affero GPL v3. See LICENSE for full details.

Dependencies

~585KB
~11K SLoC