1.\" $OpenBSD: column.1,v 1.2 1996/06/26 05:32:15 deraadt Exp $ 2.\" $NetBSD: column.1,v 1.3 1995/03/26 09:08:28 glass Exp $ 3.\" 4.\" Copyright (c) 1989, 1990, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. All advertising materials mentioning features or use of this software 16.\" must display the following acknowledgement: 17.\" This product includes software developed by the University of 18.\" California, Berkeley and its contributors. 19.\" 4. Neither the name of the University nor the names of its contributors 20.\" may be used to endorse or promote products derived from this software 21.\" without specific prior written permission. 22.\" 23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)column.1 8.1 (Berkeley) 6/6/93 36.\" 37.Dd June 6, 1993 38.Os 39.Dt COLUMN 1 40.Sh NAME 41.Nm column 42.Nd columnate lists 43.Sh SYNOPSIS 44.Nm column 45.Op Fl tx 46.Op Fl c Ar columns 47.Op Fl s Ar sep 48.Op Ar 49.Sh DESCRIPTION 50The 51.Nm column 52utility formats its input into multiple columns. 53Rows are filled before columns. 54Input is taken from 55.Ar file 56operands, or, by default, from the standard input. 57Empty lines are ignored. 58.Pp 59The options are as follows: 60.Bl -tag -width Ds 61.It Fl c 62Output is formatted for a display 63.Ar columns 64wide. 65.It Fl s 66Specify a set of characters to be used to delimit columns for the 67.Fl t 68option. 69.It Fl t 70Determine the number of columns the input contains and create a table. 71Columns are delimited with whitespace, by default, or with the characters 72supplied using the 73.Fl s 74option. 75Useful for pretty-printing displays. 76.It Fl x 77Fill columns before filling rows. 78.El 79.Pp 80.Nm Column 81exits 0 on success, >0 if an error occurred. 82.Sh ENVIRONMENT 83.Bl -tag -width COLUMNS 84.It Ev COLUMNS 85The environment variable 86.Ev COLUMNS 87is used to determine the size of 88the screen if no other information is available. 89.El 90.Sh EXAMPLES 91.Dl (printf \&"PERM LINKS OWNER SIZE MONTH DAY HH:MM/YEAR NAME\en\&"\ \&;\ \&\e 92.Dl ls -l \&| sed 1d) \&| column -t 93.Sh SEE ALSO 94.Xr colrm 1 , 95.Xr ls 1 , 96.Xr paste 1 , 97.Xr sort 1 98.Sh HISTORY 99The 100.Nm 101command appeared in 102.Bx 4.3 Reno . 103