Annotation of src/usr.bin/column/column.1, Revision 1.6
1.6 ! aaron 1: .\" $OpenBSD: column.1,v 1.5 1999/06/01 22:11:42 aaron Exp $
1.1 deraadt 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
50: The
1.4 aaron 51: .Nm
1.1 deraadt 52: utility formats its input into multiple columns.
53: Rows are filled before columns.
54: Input is taken from
55: .Ar file
56: operands, or, by default, from the standard input.
57: Empty lines are ignored.
58: .Pp
59: The options are as follows:
60: .Bl -tag -width Ds
1.3 aaron 61: .It Fl c Ar columns
1.1 deraadt 62: Output is formatted for a display
63: .Ar columns
64: wide.
1.3 aaron 65: .It Fl s Ar sep
1.1 deraadt 66: Specify a set of characters to be used to delimit columns for the
67: .Fl t
68: option.
69: .It Fl t
70: Determine the number of columns the input contains and create a table.
71: Columns are delimited with whitespace, by default, or with the characters
72: supplied using the
73: .Fl s
74: option.
75: Useful for pretty-printing displays.
76: .It Fl x
77: Fill columns before filling rows.
78: .El
79: .Pp
1.6 ! aaron 80: The
1.4 aaron 81: .Nm
1.3 aaron 82: utility exits 0 on success or >0 if an error occurred.
1.1 deraadt 83: .Sh ENVIRONMENT
84: .Bl -tag -width COLUMNS
85: .It Ev COLUMNS
86: The environment variable
87: .Ev COLUMNS
88: is used to determine the size of
89: the screen if no other information is available.
90: .El
91: .Sh EXAMPLES
1.5 aaron 92: .Dl (printf \&"PERM\ LINKS\ OWNER\ GROUP\ SIZE\ MONTH\ DAY\ HH:MM/YEAR\ NAME\en\&"\ \&; ls -l\ \&| sed 1d) \&| column -t
1.1 deraadt 93: .Sh SEE ALSO
94: .Xr colrm 1 ,
95: .Xr ls 1 ,
96: .Xr paste 1 ,
97: .Xr sort 1
98: .Sh HISTORY
99: The
100: .Nm
1.6 ! aaron 101: command appeared in
1.1 deraadt 102: .Bx 4.3 Reno .