DEROFF(1) — Unix Programmer’s Manual
NAME
deroff − remove nroff, troff, tbl and eqn constructs
SYNOPSIS
deroff [ option ] files
DESCRIPTION
Deroff reads each file in sequence and removes all nroff and troff command lines, backslash constructions, macro definitions, eqn constructs (between .EQ and .EN lines, or between delimiters), and table descriptions. It writes the remainder on the standard output. Deroff follows chains of included files (.so and .nx commands). If a file has already been included, .so is ignored and .nx terminates execution. If no input file is given, deroff reads from the standard input file.
OPTION
−w Output is a word list, one word per line. (A “word” in this case is a string of letters, digits, and apostrophes, beginning with a letter; apostrophes are removed.) All other characters are ignored. Otherwise, the output follows the original, with the deletions mentioned above.
SEE ALSO
BUGS
Deroff is not a complete troff interpreter, so it can be confused by subtle constructs. Most errors result in too much rather than too little output.
INTEGRATED SOLUTIONS 4.2 BSD — 1 August 1985