jarcane / wf

A simple Unix-style command line utility for counting word frequency, written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple Unix-style command line utility for counting word frequency, written in Rust

License:GNU Affero General Public License v3.0


Languages

Language:Rust 100.0%