width - get column widths
SYNOPSIS
width [-fc] [-Dn] [-l] [-h] [ column ... ] < tableorlist
DESCRIPTION
width
displays the maximum length of each column selected.
If no columns are listed, the widths of
all the columns are calculated and displayed.
OPTIONS
- -fc use `c' as the column separator.
- -Dn
- turn on debugging at level n, or 1 if n
is not specified.
- -l
- list all of the table rows along with the widths.
- -h
- include the widths of the header rows in the calculation
(replaces the
widest
command).
EXAMPLES
$ width -l < inventory
Item Amount Cost Value Description
---- ------ ---- ----- -----------
1 4 50 150 rubber gloves
2 100 5 500 test tubes
3 5 80 400 clamps
4 23 19 437 plates
5 99 24 2376 cleaning cloth
6 89 147 13083 bunsen burners
7 5 175 875 scales
---- ------ ---- ----- -----------
1 3 4 5 14
$ width -h < inventory
Item Amount Cost Value Description
---- ------ ---- ----- -----------
4 6 4 5 14
AKA