OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / util-linux / release / man1 / column.1
1 .\"     $NetBSD: column.1,v 1.3 1995/03/26 09:08:28 glass Exp $
2 .\"
3 .\" Copyright (c) 1989, 1990, 1993
4 .\"     The Regents of the University of California.  All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. All advertising materials mentioning features or use of this software
15 .\"    must display the following acknowledgement:
16 .\"     This product includes software developed by the University of
17 .\"     California, Berkeley and its contributors.
18 .\" 4. Neither the name of the University nor the names of its contributors
19 .\"    may be used to endorse or promote products derived from this software
20 .\"    without specific prior written permission.
21 .\"
22 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" SUCH DAMAGE.
33 .\"
34 .\"     @(#)column.1    8.1 (Berkeley) 6/6/93
35 .\"
36 .Dd June 6, 1993
37 .Os
38 .Dt COLUMN 1
39 .Sh 名称
40 .Nm column
41 .Nd 入力を複数カラムに整形する
42 .Sh 書式
43 .Nm column
44 .Op Fl tx
45 .Op Fl c Ar columns
46 .Op Fl s Ar sep
47 .Op Ar
48 .Sh 解説
49 .Nm column
50 は、入力を複数カラムに整形します。
51 列より先に各行を埋めます。
52 .Ar file
53 が 指定されていれば
54 .Ar file
55 を、指定されていなけ
56 れば標準入力を処理します。空行は無視されます。
57 .Pp
58 オプションとしては以下のものがあります:
59 .Bl -tag -width Ds
60 .It Fl c
61 表示の幅を
62 .Ar columns
63 にしてフォーマットします。
64 .It Fl s
65 列揃えするフィールドを区切る文字セットを指定します。
66 .It Fl t
67 入力中のカラム数を決定し、表を作ります。
68 各フィールドは、
69 .Fl s
70 オプションが指定されていない場合、デフォルト
71 では空白文字で区切られているものとみなします。
72 使用例を以下に示します:
73 .Pp
74 .Bd -literal -offset indent
75 $ cat a
76 123456 abcde ABCDEF
77 224 cffg QDF
78 3456 ex CQC
79 $ column -t a
80 123456  abcde  ABCDEF
81 224     cffg   QDF
82 3456    ex     CQC
83 $
84 .Ed
85 .It Fl x
86 行を埋める前にカラムを埋めます。使用例を以下に示します:
87 .Bd -literal -offset indent
88 $ ls -1
89 Makefile
90 column
91 column.1
92 column.c
93 column.cat1
94 column.o
95 $ ls -1 | column
96 Makefile        column.1        column.cat1
97 column          column.c        column.o
98 $ ls -1 | column -x
99 Makefile        column          column.1        column.c        column.cat1
100 column.o
101 .Ed
102 .Sh 戻り値
103 成功した場合は 0 を、エラーが起きた場合は 1 以上の値を返します。
104 .Pp
105 .Sh 使用例
106 .Dl (printf \&"PERM LINKS OWNER SIZE MONTH DAY HH:MM/YEAR NAME\en\&"\ \&;\ \&\e
107 .Dl ls -l \&| sed 1d) \&| column -t
108 .Sh 環境変数
109 .Bl -tag -width COLUMNS
110 .It Ev COLUMNS
111 画面の横幅を指定します。
112 .Sh 関連項目
113 .Xr colrm 1 ,
114 .Xr ls 1 ,
115 .Xr paste 1 ,
116 .Xr sort 1
117 .Sh 歴史
118 .Nm
119 コマンドは
120 .Bx 4.3 Reno
121 から登場しました。