WF 1L "08 April 1991"

Table of contents


NAME

wf - word frequency

SYNOPSIS

wf < infile >outfile

wf filters its standard input, printing on standard output a list of (frequency, word) pairs, one per line, sorted in order of descending frequency. Words with the same frequency are displayed in alphabetical order.

A word starts with a letter or underscore, and is followed by zero or more letters, underscores, or digits. Letter case is ignored.

This is a handy tool for analyzing writing vocabulary.

Its other purpose is to demonstrate a modest lex(1) program and hashing techniques.


SEE ALSO

awk(1), lex(1).

AUTHOR

Nelson H. F. Beebe, Ph.D.
Center for Scientific Computing
Department of Mathematics
South Physics Building
University of Utah
Salt Lake City, UT 84112
Tel: (801) 581-5254
FAX: (801) 581-4148
Email: <beebe@science.utah.edu>