2.9BSD/usr/man/cat1/prep.1

Compare this file to the similar file:
Show the results in this format:


PREP(1)             UNIX Programmer's Manual              PREP(1)

NAME
     prep - prepare text for statistical processing

SYNOPSIS
     prep [ -diop ] file ...

DESCRIPTION
     _P_r_e_p reads each _f_i_l_e in sequence and writes it on the stan-
     dard output, one `word' to a line.  A word is a string of
     alphabetic characters and imbedded apostrophes, delimited by
     space or punctuation.  Hyphented 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   Print the word number (in the input stream) with each
          word.

     -i   Take the next _f_i_l_e as an `ignore' file.  These words
          will not appear in the output.  (They will be counted,
          for purposes of the -d count.)

     -o   Take the next _f_i_l_e as an `only' file.  Only these words
          will appear in the output.  (All other words will also
          be counted for the -d count.)

     -p   Include punctuation marks (single nonalphanumeric char-
          acters) as separate output lines.  The punctuation
          marks are not counted for the -d count.

     Ignore and only files contain words, one per line.

SEE ALSO
     deroff(1)

Printed 7/25/83                                                 1