man page(1)
Table of Contents

NAME

wf - print word frequencies

SYNOPSIS

wf [ option ... ] [ file ... ]

DESCRIPTION

wf prints, on the standard output, a list of the words that appear in its file arguments and the number of times each word appears. A tab separates each frequency from its word. If there are no file arguments, wf prints the frequencies of the words in the standard input.

A ``word'' is a sequence of one or more letters, underscores, and digits that begins with an underscore or letter. Case matters, so ``Hello'' and ``hello'' are different words. Input lines may be of arbitrary length, but words longer than 64 characters are truncated.

The option -n causes wf to print only those words that occur n or fewer times in increasing order of frequency of occurrence. The option +n causes wf to print only those words that occur n or more times in decreasing order of frequency of occurrence. In the absence of an explicit option, wf behaves as if +0 were specified; that is, it prints all the words, most frequently occurring word first.

SEE ALSO

wc(1)


Table of Contents