bsd man page for prep

Query: prep

OS: bsd

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PREP(1) 						      General Commands Manual							   PREP(1)

NAME
prep - prepare text for statistical processing
SYNOPSIS
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. 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 file 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 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 Include punctuation marks (single nonalphanumeric characters) 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) PREP(1)
Related Man Pages
deroff(1) - osf1
deroff(1) - centos
deroff(1) - php
deroff(1) - linux
deroff(1) - osx
Similar Topics in the Unix Linux Community
Help with uniq -D [prepend]
Redirection after prepending timestamp
Prepend first line of section to each line until the next section header
Hundreds of files need manual preparation. Does shell script could do it automatically?
Prepend text, different matched 1st letters