Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

eqn(1)

tbl(1)

troff(1)

DEROFF(1)                            BSD                             DEROFF(1)



NAME
     deroff - remove nroff, troff, tbl, and eqn constructs

SYNOPSIS
     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 is already included, deroff ignores a .so, and a .nx terminates
     execution.  If you do not specify an input file, 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.
     deroff removes trailing apostrophes from words.

BUGS
     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.

SEE ALSO
     eqn(1), tbl(1), troff(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026