OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / util-linux / draft / man1 / col.1
1 .\" Copyright (c) 1990 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Michael Rendell.
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 .\"     @(#)col.1       6.8 (Berkeley) 6/17/91
36 .\"
37 .\" Japanese Version Copyright (c) 2001 Yuichi SATO
38 .\"         all rights reserved.
39 .\" Translated Sun Mar 3 1995
40 .\"         by NetBSD jman proj. <jman@spa.is.uec.ac.jp>
41 .\" Updated Sun Jan  7 21:36:58 JST 2001
42 .\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
43 .\"
44 .\"WORD:        line feed               ²þ¹Ô
45 .\"WORD:        carrige return          Éüµ¢
46 .\"
47 .Dd June 17, 1991
48 .Dt COL 1
49 .Os
50 .\"O .Sh NAME
51 .Sh Ì¾Á°
52 .Nm col
53 .\"O .Nd filter reverse line feeds from input
54 .Nd ÆþÎÏÃæ¤Ë¤¢¤ëµÕ²þ¹Ô¥³¡¼¥É¤ò½èÍý¤¹¤ë¥Õ¥£¥ë¥¿
55 .\"O .Sh SYNOPSIS
56 .Sh ½ñ¼°
57 .Nm col
58 .Op Fl bfpx
59 .Op Fl l Ar num
60 .\"O .Sh DESCRIPTION
61 .Sh ÀâÌÀ
62 .\"O .Nm Col
63 .\"O filters out reverse (and half reverse) line feeds so the output is
64 .\"O in the correct order with only forward and half forward line
65 .\"O feeds, and replaces white-space characters with tabs where possible.
66 .\"O This can be useful in processing the output of
67 .\"O .Xr nroff 1
68 .\"O and
69 .\"O .Xr tbl  1 .
70 .Nm col
71 ¤Ï¡¢µÕÊý¸þ¤Ø¤Î²þ¹Ô¤ª¤è¤ÓȾ²þ¹Ô¤ò¼è¤ê½ü¤­¡¢
72 Ä̾ï¤Î²þ¹ÔÊý¸þ¤À¤±¤Ç½ÐÎϲÄǽ¤Ê¤â¤Î¤ËÊÑ´¹¤¹¤ë¡£
73 Ʊ»þ¤Ë¡¢²Äǽ¤Ê¸Â¤ê¶õÇòʸ»úÉôʬ¤ò¥¿¥Ö¤ËÃÖ¤­´¹¤¨¤ë½èÍý¤ò¤¹¤ë¡£
74 ¤³¤ì¤Ï¡¢
75 .Xr nroff 1
76 ¤ä
77 .Xr tbl 1
78 ¤Î½ÐÎϤò½èÍý¤¹¤ë¤Î¤ËÌòΩ¤Ä¡£
79 .Pp
80 .\"O .Nm Col
81 .\"O reads from standard input and writes to standard output.
82 .Nm col
83 ¤Ï¡¢¥Ç¡¼¥¿¤òɸ½àÆþÎϤ«¤éÆɤ߹þ¤ß¡¢É¸½à½ÐÎϤ˽ñ¤­½Ð¤¹¡£
84 .Pp
85 .\"O The options are as follows:
86 ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤Ï°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë:
87 .Bl -tag -width "-lnum"
88 .It Fl b
89 .\"O Do not output any backspaces, printing only the last character
90 .\"O written to each column position.
91 ¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤ò½ÐÎϤ·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£
92 (ÌõÃð: Æ±¤¸²Õ½ê¤ËÊ£¿ô¤Îʸ»ú¤¬½ñ¤«¤ì¤ë¾ì¹ç¤Ï)
93 ¹ÔÃæ¤Î¤½¤Î²Õ½ê¤ËºÇ¸å¤Ë½ñ¤«¤ì¤¿Ê¸»ú¤À¤±¤òɽ¼¨¤¹¤ë¡£
94 .It Fl f
95 .\"O Forward half line feeds are permitted (``fine'' mode).
96 .\"O Normally characters printed on a half line boundary are printed
97 .\"O on the following line.
98 Ⱦ²þ¹Ô¤ò´Þ¤á¤ë¤³¤È¤òµö²Ä¤¹¤ë (``fine'' ¥â¡¼¥É)¡£
99 Ä̾¹Ô¤È¹Ô¤Î¶­³¦¤Ëɽ¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ëʸ»ú¤Ï¡¢¼¡¤Î¹Ô¤Ëɽ¼¨¤µ¤ì¤ë¡£
100 .It Fl p
101 .\"O Force unknown control sequences to be passed through unchanged.
102 .\"O Normally,
103 .\"O .Nm col
104 .\"O will filter out any control sequences from the input other than those
105 .\"O recognized and interpreted by itself, which are listed below.
106 ÉÔÌÀ¤Ê¥³¥ó¥È¥í¡¼¥ëʸ»ú¤òÊѹ¹¤»¤º¤Ëɽ¼¨¤¹¤ë¡£
107 Ä̾ï
108 .Nm col
109 ¤Ï¡¢°Ê²¼¤Ëµó¤²¤ë¤è¤¦¤Êǧ¼±¡¦²ò¼á¤Ç¤­¤ë
110 ¥³¥ó¥È¥í¡¼¥ëʸ»ú¤Ç¤Ê¤±¤ì¤Ð¡¢¤½¤Îʸ»ú¤òÆþÎϤ«¤é¼è¤ê½ü¤¯¡£
111 .It Fl x
112 .\"O Output multiple spaces instead of tabs.
113 ¥¿¥Ö¤Î¤«¤ï¤ê¤ËÊ£¿ô¸Ä¤Î¶õÇòʸ»ú¤ò½ÐÎϤ¹¤ë¡£
114 .It Fl l Ns Ar num
115 .\"O Buffer at least
116 .\"O .Ar num
117 .\"O lines in memory.
118 .\"O By default, 128 lines are buffered.
119 ¥á¥â¥ê¾å¤Ë¡¢¾¯¤Ê¤¯¤È¤â
120 .Ar num
121 ¹Ôʬ¤ò¥Ð¥Ã¥Õ¥¡¤¹¤ë¡£
122 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 128 ¹Ôʬ¤¬¥Ð¥Ã¥Õ¥¡¤µ¤ì¤ë¡£
123 .El
124 .Pp
125 .\"O The control sequences for carriage motion that
126 .\"O .Nm col
127 .\"O understands and their decimal values are listed in the following
128 .\"O table:
129 .Nm col
130 ¤¬Ç§¼±¤¹¤ëÉüµ¢Æ°ºî¤Î¤¿¤á¤Î¥³¥ó¥È¥í¡¼¥ëʸ»ú¤È¡¢
131 ¤½¤Îʸ»ú¤Î 10 ¿Ê¿ô¤Ç¤ÎÃͤò°Ê²¼¤Îɽ¤Ë¼¨¤¹:
132 .Pp
133 .Bl -tag -width "carriage return" -compact
134 .It ESC\-7
135 .\"O reverse line feed (escape then 7)
136 µÕÊý¸þ¤Ë²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 7)
137 .It ESC\-8
138 .\"O half reverse line feed (escape then 8)
139 µÕÊý¸þ¤ËȾ²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 8)
140 .It ESC\-9
141 .\"O half forward line feed (escape then 9)
142 Ä̾ïÊý¸þ¤ËȾ²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 9)
143 .It backspace
144 .\"O moves back one column (8); ignored in the first column
145 µÕÊý¸þ¤Ë 1 ¥«¥é¥àʬÌ᤹ (8)¡£ºÇ½é¤Î¥«¥é¥à¤Ç¤Ï̵»ë¤µ¤ì¤ë
146 .It carriage return
147 .\"O (13)
148 ¹ÔƬ¤ËÉüµ¢¤¹¤ë (13)
149 .It newline
150 .\"O forward line feed (10); also does carriage return
151 Ä̾ïÊý¸þ¤Ë²þ¹Ô¤¹¤ë (10)¡£¹ÔƬ¤Ø¤ÎÉüµ¢¤â¹Ô¤¦
152 .It shift in
153 .\"O shift to normal character set (15)
154 Ä̾ï¤Îʸ»ú¥»¥Ã¥È¤òÁªÂò¤¹¤ë (15)
155 .It shift out
156 .\"O shift to alternate character set (14)
157 ÆÃÊ̤Êʸ»ú¥»¥Ã¥È¤òÁªÂò¤¹¤ë (14)
158 .It space
159 .\"O moves forward one column (32)
160 Ä̾ïÊý¸þ¤Ë 1 ¥«¥é¥àʬ¤Ë°ÜÆ°¤¹¤ë (32)
161 .It tab
162 .\"O moves forward to next tab stop (9)
163 ¼¡¤Î¥¿¥Ö°ÌÃ֤ذÜÆ°¤¹¤ë (9)
164 .It vertical tab
165 .\"O reverse line feed (11)
166 µÕÊý¸þ¤Ë²þ¹Ô¤¹¤ë (11)
167 .El
168 .Pp
169 .\"O All unrecognized control characters and escape sequences are
170 .\"O discarded.
171 col ¤¬Ç§¼±¤Ç¤­¤Ê¤¤¥³¥ó¥È¥í¡¼¥ëʸ»ú¤ª¤è¤Ó¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤Ïºï½ü¤µ¤ì¤ë¡£
172 .Pp
173 .\"O .Nm Col
174 .\"O keeps track of the character set as characters are read and makes
175 .\"O sure the character set is correct when they are output.
176 .Nm col
177 ¤Ïʸ»úÎó¤òÆɤ߹þ¤ß¤Ê¤¬¤éÄɤäƹԤ­¡¢
178 ½ÐÎϤ¹¤ëºÝ¤ËÀµ¤·¤¤¤«¤ò³Îǧ¤¹¤ë¡£
179 .Pp
180 .\"O If the input attempts to back up to the last flushed line,
181 .\"O .Nm col
182 .\"O will display a warning message.
183 ¤¹¤Ç¤Ë½ÐÎϤ·¤Æ¤·¤Þ¤Ã¤¿¹Ô¤òĶ¤¨¤ÆÌá¤ë¤è¤¦¤ÊµÕ²þ¹Ô¤Î½èÍý¤¬Æþ¤Ã¤¿¾ì¹ç¡¢
184 .Nm col
185 ¤Ï·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¡£
186 .\"O .Sh SEE ALSO
187 .Sh ´ØÏ¢¹àÌÜ
188 .Xr expand 1 ,
189 .Xr nroff 1 ,
190 .Xr tbl 1
191 .\"O .Sh STANDARDS
192 .Sh ½àµò
193 .\"O The
194 .\"O .Nm col
195 .\"O utility conforms to the Single UNIX Specification, Version 2. The
196 .\"O .Fl l
197 .\"O option is an extension to the standard.
198 .Nm col
199 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï Single UNIX Specification, Version 2 ¤Ë½¾¤¦¡£
200 .Fl l
201 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³¤Îµ¬³Ê¤ò³ÈÄ¥¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
202 .\"O .Sh HISTORY
203 .Sh ÍúÎò
204 .\"O A
205 .\"O .Nm col
206 .\"O command
207 .\"O appeared in Version 6 AT&T UNIX.
208 .Nm col
209 ¥³¥Þ¥ó¥É¤Ï
210 Version 6 AT&T UNIX
211 ¤«¤éÅо줷¤¿¡£