BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / tbl.0
TBL(1) UNIX Programmer's Manual TBL(1)
N\bNA\bAM\bME\bE
tbl - format tables for nroff or troff
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
t\btb\bbl\bl [ files ] ...
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bT_\bb_\bl is a preprocessor for formatting tables for _\bn_\br_\bo_\bf_\bf or
_\bt_\br_\bo_\bf_\bf(1). The input files are copied to the standard out-
put, except for lines between and are reformatted. Details
are given in the _\bt_\bb_\bl(1) reference manual.
E\bEX\bXA\bAM\bMP\bPL\bLE\bE
As an example, letting \t represent a tab (which should be
typed as a genuine tab) the input
.TS
c s s
c c s
c c c
l n n.
Household Population
Town\tHouseholds
\tNumber\tSize
Bedminster\t789\t3.26
Bernards Twp.\t3087\t3.74
Bernardsville\t2018\t3.30
Bound Brook\t3425\t3.04
Branchburg\t1644\t3.49
Bridgewater\t7897\t3.81
Far Hills\t240\t3.19
.TE
yields
Household Population
Town Households
Number Size
Bedminster 789 3.26
Bernards Twp. 3087 3.74
Bernardsville 2018 3.30
Bound Brook 3425 3.04
Branchburg 1644 3.49
Bridgewater 7897 3.81
Far Hills 240 3.19
If no arguments are given, _\bt_\bb_\bl reads the standard input, so
it may be used as a filter. When _\bt_\bb_\bl is used with _\be_\bq_\bn or
_\bn_\be_\bq_\bn the _\bt_\bb_\bl command should be first, to minimize the volume
of data passed through pipes.
Printed 7/9/88 April 29, 1985 1
TBL(1) UNIX Programmer's Manual TBL(1)
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
troff(1), eqn(1)
M. E. Lesk, _\bT_\bB_\bL.
Printed 7/9/88 April 29, 1985 2