1 .\" Copyright (c) 1990 The Regents of the University of California.
2 .\" All rights reserved.
4 .\" This code is derived from software contributed to Berkeley by
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
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.
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
35 .\" @(#)col.1 6.8 (Berkeley) 6/17/91
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>
44 .\"WORD: line feed ²þ¹Ô
45 .\"WORD: carrige return Éüµ¢
53 .\"O .Nd filter reverse line feeds from input
54 .Nd ÆþÎÏÃæ¤Ë¤¢¤ëµÕ²þ¹Ô¥³¡¼¥É¤ò½èÍý¤¹¤ë¥Õ¥£¥ë¥¿
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
71 ¤Ï¡¢µÕÊý¸þ¤Ø¤Î²þ¹Ô¤ª¤è¤ÓȾ²þ¹Ô¤ò¼è¤ê½ü¤¡¢
72 Ä̾ï¤Î²þ¹ÔÊý¸þ¤À¤±¤Ç½ÐÎϲÄǽ¤Ê¤â¤Î¤ËÊÑ´¹¤¹¤ë¡£
73 Ʊ»þ¤Ë¡¢²Äǽ¤Ê¸Â¤ê¶õÇòʸ»úÉôʬ¤ò¥¿¥Ö¤ËÃÖ¤´¹¤¨¤ë½èÍý¤ò¤¹¤ë¡£
78 ¤Î½ÐÎϤò½èÍý¤¹¤ë¤Î¤ËÌòΩ¤Ä¡£
81 .\"O reads from standard input and writes to standard output.
83 ¤Ï¡¢¥Ç¡¼¥¿¤òɸ½àÆþÎϤ«¤éÆɤ߹þ¤ß¡¢É¸½à½ÐÎϤ˽ñ¤½Ð¤¹¡£
85 .\"O The options are as follows:
86 ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤Ï°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë:
87 .Bl -tag -width "-lnum"
89 .\"O Do not output any backspaces, printing only the last character
90 .\"O written to each column position.
91 ¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤ò½ÐÎϤ·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£
92 (ÌõÃð: Ʊ¤¸²Õ½ê¤ËÊ£¿ô¤Îʸ»ú¤¬½ñ¤«¤ì¤ë¾ì¹ç¤Ï)
93 ¹ÔÃæ¤Î¤½¤Î²Õ½ê¤ËºÇ¸å¤Ë½ñ¤«¤ì¤¿Ê¸»ú¤À¤±¤òɽ¼¨¤¹¤ë¡£
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 Ä̾¹Ô¤È¹Ô¤Î¶³¦¤Ëɽ¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ëʸ»ú¤Ï¡¢¼¡¤Î¹Ô¤Ëɽ¼¨¤µ¤ì¤ë¡£
101 .\"O Force unknown control sequences to be passed through unchanged.
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 ÉÔÌÀ¤Ê¥³¥ó¥È¥í¡¼¥ëʸ»ú¤òÊѹ¹¤»¤º¤Ëɽ¼¨¤¹¤ë¡£
109 ¤Ï¡¢°Ê²¼¤Ëµó¤²¤ë¤è¤¦¤Êǧ¼±¡¦²ò¼á¤Ç¤¤ë
110 ¥³¥ó¥È¥í¡¼¥ëʸ»ú¤Ç¤Ê¤±¤ì¤Ð¡¢¤½¤Îʸ»ú¤òÆþÎϤ«¤é¼è¤ê½ü¤¯¡£
112 .\"O Output multiple spaces instead of tabs.
113 ¥¿¥Ö¤Î¤«¤ï¤ê¤ËÊ£¿ô¸Ä¤Î¶õÇòʸ»ú¤ò½ÐÎϤ¹¤ë¡£
117 .\"O lines in memory.
118 .\"O By default, 128 lines are buffered.
119 ¥á¥â¥ê¾å¤Ë¡¢¾¯¤Ê¤¯¤È¤â
122 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 128 ¹Ôʬ¤¬¥Ð¥Ã¥Õ¥¡¤µ¤ì¤ë¡£
125 .\"O The control sequences for carriage motion that
127 .\"O understands and their decimal values are listed in the following
130 ¤¬Ç§¼±¤¹¤ëÉüµ¢Æ°ºî¤Î¤¿¤á¤Î¥³¥ó¥È¥í¡¼¥ëʸ»ú¤È¡¢
131 ¤½¤Îʸ»ú¤Î 10 ¿Ê¿ô¤Ç¤ÎÃͤò°Ê²¼¤Îɽ¤Ë¼¨¤¹:
133 .Bl -tag -width "carriage return" -compact
135 .\"O reverse line feed (escape then 7)
136 µÕÊý¸þ¤Ë²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 7)
138 .\"O half reverse line feed (escape then 8)
139 µÕÊý¸þ¤ËȾ²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 8)
141 .\"O half forward line feed (escape then 9)
142 Ä̾ïÊý¸þ¤ËȾ²þ¹Ô¤¹¤ë (¥¨¥¹¥±¡¼¥×¤Î¸å¤Ë 9)
144 .\"O moves back one column (8); ignored in the first column
145 µÕÊý¸þ¤Ë 1 ¥«¥é¥àʬÌ᤹ (8)¡£ºÇ½é¤Î¥«¥é¥à¤Ç¤Ï̵»ë¤µ¤ì¤ë
150 .\"O forward line feed (10); also does carriage return
151 Ä̾ïÊý¸þ¤Ë²þ¹Ô¤¹¤ë (10)¡£¹ÔƬ¤Ø¤ÎÉüµ¢¤â¹Ô¤¦
153 .\"O shift to normal character set (15)
154 Ä̾ï¤Îʸ»ú¥»¥Ã¥È¤òÁªÂò¤¹¤ë (15)
156 .\"O shift to alternate character set (14)
157 ÆÃÊ̤Êʸ»ú¥»¥Ã¥È¤òÁªÂò¤¹¤ë (14)
159 .\"O moves forward one column (32)
160 Ä̾ïÊý¸þ¤Ë 1 ¥«¥é¥àʬ¤Ë°ÜÆ°¤¹¤ë (32)
162 .\"O moves forward to next tab stop (9)
163 ¼¡¤Î¥¿¥Ö°ÌÃ֤ذÜÆ°¤¹¤ë (9)
165 .\"O reverse line feed (11)
166 µÕÊý¸þ¤Ë²þ¹Ô¤¹¤ë (11)
169 .\"O All unrecognized control characters and escape sequences are
171 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.
177 ¤Ïʸ»úÎó¤òÆɤ߹þ¤ß¤Ê¤¬¤éÄɤäƹԤ¡¢
178 ½ÐÎϤ¹¤ëºÝ¤ËÀµ¤·¤¤¤«¤ò³Îǧ¤¹¤ë¡£
180 .\"O If the input attempts to back up to the last flushed line,
182 .\"O will display a warning message.
183 ¤¹¤Ç¤Ë½ÐÎϤ·¤Æ¤·¤Þ¤Ã¤¿¹Ô¤òĶ¤¨¤ÆÌá¤ë¤è¤¦¤ÊµÕ²þ¹Ô¤Î½èÍý¤¬Æþ¤Ã¤¿¾ì¹ç¡¢
185 ¤Ï·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¡£
195 .\"O utility conforms to the Single UNIX Specification, Version 2. The
197 .\"O option is an extension to the standard.
199 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï Single UNIX Specification, Version 2 ¤Ë½¾¤¦¡£
201 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³¤Îµ¬³Ê¤ò³ÈÄ¥¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
207 .\"O appeared in Version 6 AT&T UNIX.