Commit | Line | Data |
---|---|---|
2791ff57 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3c21473c | 3 | .\" |
2791ff57 KB |
4 | .\" %sccs.include.proprietary.roff% |
5 | .\" | |
6 | .\" @(#)deroff.1 6.5 (Berkeley) %G% | |
f35cac8e CL |
7 | .\" |
8 | .Dd | |
9 | .Dt DEROFF 1 | |
10 | .Os ATT 7th | |
11 | .Sh NAME | |
12 | .Nm deroff | |
13 | .Nd remove nroff, troff, tbl and eqn constructs | |
14 | .Sh SYNOPSIS | |
15 | .Nm deroff | |
16 | .Op Fl w | |
17 | .Ar file \&... | |
18 | .Sh DESCRIPTION | |
19 | .Nm Deroff | |
351cca63 | 20 | reads each file in sequence and removes all |
f35cac8e | 21 | .Xr nroff 1 |
3c21473c | 22 | and |
f35cac8e | 23 | .Xr troff 1 |
3c21473c | 24 | command lines, backslash constructions, macro definitions, |
f35cac8e | 25 | .Xr eqn 1 |
351cca63 KM |
26 | constructs (between `.EQ' and `.EN' lines or between delimiters), |
27 | and table descriptions and writes the remainder on the standard output. | |
f35cac8e | 28 | .Nm Deroff |
351cca63 KM |
29 | follows chains of included files (`.so' and `.nx' commands); |
30 | if a file has already been included, a `.so' is ignored and a `.nx' | |
31 | terminates execution. If no input file is given, | |
f35cac8e | 32 | .Nm deroff |
3c21473c | 33 | reads from the standard input. |
f35cac8e | 34 | .Pp |
3c21473c | 35 | If the |
f35cac8e | 36 | .Fl w |
351cca63 KM |
37 | flag is given, the output is a word list, one `word' (string of letters, |
38 | digits, and apostrophes, beginning with a letter; apostrophes are removed) | |
39 | per line, and all other characters ignored. | |
3c21473c | 40 | Otherwise, the output follows the original, with the deletions mentioned above. |
f35cac8e CL |
41 | .Sh SEE ALSO |
42 | .Xr troff 1 , | |
43 | .Xr eqn 1 , | |
44 | .Xr tbl 1 | |
45 | .Sh HISTORY | |
46 | .Nm Deroff | |
47 | appeared in Version 7 AT&T Unix. | |
48 | .Sh BUGS | |
49 | .Nm Deroff | |
3c21473c | 50 | is not a complete |
f35cac8e | 51 | .Xr troff 1 |
351cca63 | 52 | interpreter, so it can be confused by subtle constructs. |
3c21473c | 53 | Most errors result in too much rather than too little output. |