DEROFF(1B) | BSD System Compatibility | DEROFF(1B) |
deroff - (BSD) remove nroff, troff, tbl and eqn constructs
/usr/ucb/deroff [-w] file ...
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 and writes the remainder on the standard output. Deroff follows chains of included files (`.so' and `.nx' commands); if a file has already been included, a `.so' is ignored and a `.nx' terminates execution. If no input file is given, deroff reads from the standard input.
If the -w flag is given, the output is a word list, one `word' (string of letters, digits, and apostrophes, beginning with a letter; apostrophes are removed) per line, and all other characters ignored. Otherwise, the output follows the original, with the deletions mentioned above.
eqn(1), tbl(1), troff(1)
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.
10/25/03 | Heirloom Toolchest |