PREP(CT) XENIX System V PREP(CT)
Name
prep - Prepares text for statistical processing.
Syntax
prep [ -diop ] file ...
Description
prep reads each file in sequence and writes it on the
standard output, one ``word'' to a line. A word is a string
of alphabetic characters and imbedded apostrophes, delimited
by space or punctuation. Hyphenated words are broken apart;
hyphens at the end of lines are removed and the hyphenated
parts are joined. Strings of digits are discarded.
The following option letters may appear in any order:
-d Prints the word number (in the input stream) with each
word.
-i Takes the next file as an ``ignore'' file. These words
will not appear in the output. (They will be counted,
for purposes of the -d count.)
-o Takes the next file as an ``only'' file. Only these
words will appear in the output. (All other words will
also be counted for the -d count.)
-p Includes punctuation marks (single nonalphanumeric
characters) as separate output lines. The punctuation
marks are not counted for the -d count.
The ignore and only files contain words, one per line.
See Also
deroff(CT)
Notes
prep ignores any nroff/troff commands it may find in a file.
In some cases, it may mistake sentences that begin with a
period or a quote as nroff/troff commands and ignore them.
Page 1 (printed 8/7/87)