xref: /original-bsd/usr.bin/column/column.1 (revision abd50c55)
Copyright (c) 1989 The Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)column.1 5.3 (Berkeley) 11/01/89

C 7
COLUMN 1 ""
C 1
NAME
column - columnate lists
SYNOPSIS
column [ -tx ] [ -s sep ] [-c columns ] [ file ... ]
DESCRIPTION
The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by default, from the standard input. Empty lines are ignored.

The options are as follows:

-c Output is formatted for a display columns wide.

-s Specify a set of characters to be used to delimit columns for the -t option.

-t Determine the number of columns the input contains and create a table. Columns are delimited by whitespace, by default, or by the characters supplied using the -s option. Useful for pretty-printing displays, for example: (printf "PERM LINKS OWNER SIZE MONTH DAY HH:MM/YEAR NAME\en";

ls -l | sed 1d) | column -t

-x Fill columns before filling rows.

Column exits 0 on success, >0 if an error occurred.

ENVIRONMENT

COLUMNS The environmental variable COLUMNS is used to determine the size of the screen if no other information is available.

"SEE ALSO"
colrm(1), ls(1), paste(1), sort(1)