new copyright; att/bsd/shared
[unix-history] / usr / src / usr.bin / deroff / deroff.1
CommitLineData
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 20reads each file in sequence and removes all
f35cac8e 21.Xr nroff 1
3c21473c 22and
f35cac8e 23.Xr troff 1
3c21473c 24command lines, backslash constructions, macro definitions,
f35cac8e 25.Xr eqn 1
351cca63
KM
26constructs (between `.EQ' and `.EN' lines or between delimiters),
27and table descriptions and writes the remainder on the standard output.
f35cac8e 28.Nm Deroff
351cca63
KM
29follows chains of included files (`.so' and `.nx' commands);
30if a file has already been included, a `.so' is ignored and a `.nx'
31terminates execution. If no input file is given,
f35cac8e 32.Nm deroff
3c21473c 33reads from the standard input.
f35cac8e 34.Pp
3c21473c 35If the
f35cac8e 36.Fl w
351cca63
KM
37flag is given, the output is a word list, one `word' (string of letters,
38digits, and apostrophes, beginning with a letter; apostrophes are removed)
39per line, and all other characters ignored.
3c21473c 40Otherwise, 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
47appeared in Version 7 AT&T Unix.
48.Sh BUGS
49.Nm Deroff
3c21473c 50is not a complete
f35cac8e 51.Xr troff 1
351cca63 52interpreter, so it can be confused by subtle constructs.
3c21473c 53Most errors result in too much rather than too little output.