DEROFF(1)
NAME
deroff − remove nroff, troff, tbl, and eqn constructs
USAGE
deroff [ −w ] file ...
DESCRIPTION
Deroff reads each file in sequence and removes all nroff(1) and troff(1) command lines, backslash constructions, macro definitions, eqn(1) constructs (between .EQ and .EN lines or between delimiters), and table descriptions. It then writes the remainder on the standard output. Deroff follows chains of included files (.so and .nx commands). If a file has already been included, it ignores a .so, and a .nx terminates execution. If no input file is given, deroff reads from the standard input file.
If you use the −w option, deroff outputs a word list, one word per line. All other characters are ignored. Otherwise, the output follows the original, with the deletions mentioned above. A word is a string that begins with a letter and contains letters, digits, and apostrophes. Trailing apostrophes are removed from words.
CAUTIONS
Deroff is not a complete troff(1) interpreter, so it can be confused by subtle constructs. Most errors result in too much rather than too little output.