Files
rdb/man/word.man
T

74 lines
896 B
Groff

.TH word "" "" "/rdb Command"
.PC "Convert text file into list of unique words"
\fBword < \fItext \fB> \fItable\fR
.PP
.II "text^find unique words"
The command
.B word
reads
.I text
converts it to a list of the unique words it contains, and writes the
list to the standard output.
You can use
.B word
to help construct tables for the
.B /rdb
command
.BR translate .
.SH Example
If you were to type the above paragraph into a file called
.BR FOO ,
the command
.DM
word < FOO
.DE
.PP
would print the following to the standard output:
.DM
The
You
a
and
can
command
construct
contains
converts
for
help
it
list
of
output
rdb
reads
standard
tables
text
the
to
unique
use
word
words
writes
.DE
.PP
.SH "See Also"
.B
translate
.R
.br
COHERENT Lexicon:
.B
sort,
tr,
uniq
.R
.SH Notes
Because
.B word
is a shell script, you can modify it to map upper-case characters to
lower case, if you wish.
.SO word