COLUMN(1) | General Commands Manual | COLUMN(1) |
column
— columnate
lists
column |
[-tx ] [-c
columns] [-s
sep] [file ...] |
The column
utility formats its input into
multiple columns. Each input line provides the text for one output cell.
Columns are filled before rows.
The column width is determined by the longest input line rounded up to the nearest tabstop; tabstops are assumed to be at multiples of eight. Output uses tab characters to advance to the next column. The number of columns is chosen to fill the terminal width.
Input is taken from file operands or, by default, from the standard input. Empty lines and lines containing only whitespace are ignored.
The options are as follows:
-c
columns-s
sep-t
option. It defaults to space and tab.-t
-s
option. Leading,
trailing, and multiple adjacent delimiters are ignored. Each column is as
wide as the widest cell in it. Columns are separated by two spaces.-x
COLUMNS
column
defaults to the
terminal width, or 80 columns if the output is not a terminal.LC_CTYPE
The column
utility exits 0 on
success, and >0 if an error occurs.
The column
command appeared in
4.3BSD-Reno.
October 24, 2016 | OpenBSD-current |