|
|
1.1 root 1: .\" Copyright (c) 1989, 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)column.1 5.6 (Berkeley) 7/24/90
19: .\"
20: .Dd July 24, 1990
21: .Os BSD 4.4
22: .Dt COLUMN 1
23: .Sh NAME
24: .Nm column
25: .Nd columnate lists
26: .Sh SYNOPSIS
27: .Nm column
28: .Oo
29: .Op Fl t Ar x
30: .Op Fl s Ar sep
31: .Op Fl c Ar columns
32: .Oo
33: .Cx
34: .Ar
35: .Sh DESCRIPTION
36: The
37: .Nm column
38: utility formats its input into multiple columns.
39: Rows are filled before columns.
40: Input is taken from
41: .Ar file
42: operands, or, by default, from the standard input.
43: Empty lines are ignored.
44: .Pp
45: The options are as follows:
46: .Tw Ds
47: .Tp Fl c
48: Output is formatted for a display
49: .Ar columns
50: wide.
51: .Tp Fl s
52: Specify a set of characters to be used to delimit columns for the
53: .Fl t
54: option.
55: .Tp Fl t
56: Determine the number of columns the input contains and create a table.
57: Columns are delimited by whitespace, by default, or by the characters
58: supplied using the
59: .Fl s
60: option.
61: Useful for pretty-printing displays.
62: .Tp Fl x
63: Fill columns before filling rows.
64: .Tp
65: .Pp
66: .Nm Column
67: exits 0 on success, >0 if an error occurred.
68: .Sh ENVIRONMENT
69: .Tw Fl
70: .Tp Ev COLUMNS
71: The environment variable
72: .Ev COLUMNS
73: is used to determine the size of
74: the screen if no other information is available.
75: .Sh EXAMPLES
76: .Dl (printf "PERM LINKS OWNER SIZE MONTH DAY HH:MM/YEAR NAME\en" \&;
77: .Dl ls -l sed 1d) \&| column -t
78: .Sh SEE ALSO
79: .Xr colrm 1 ,
80: .Xr ls 1 ,
81: .Xr paste 1 ,
82: .Xr sort 1
83: .Sh HISTORY
84: 4.3 Reno BSD.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.