.\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Michael Rendell. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)col.1 6.8 (Berkeley) 6/17/91 .\" .TH col 1 1991年6月17日 "COL 1" .SH NAME(名稱) col \- 過濾掉輸入中的反向換行符 .SH SYNOPSIS(總覽) .B col [ .B -bfx ] [ .B -l .IR num ] .SH DESCRIPTION(描述) .B col 過濾掉反向(以及半反向)換行符(LF: line feed or NL: new line), 這樣輸出按正常順序,即只包括正向和半正向換行符, 而且在可能的地方使用tab替換白空格.這對 nroff(1) 和 tbl(1) 的輸出處理很有用處. .PP .B col 從標準輸出讀入,並寫出到標準輸出上. .PP 選項如下: .TP -b 不輸出任何退格符,在每列的位置上只打印最後寫的那個字元. .TP -f 允許正向半換行符(``fine''模式). 通常,處於半行分界線上的字元列印在下一行. .TP -x 輸出多個空格以替換tab. .TP -l num 在記憶體中至少緩衝 .IR num 行. 預設情況下,緩衝128行. .PP .B col 所能理解的用於回車操作的控制序列以及它們的十進位制值都列在下面的表中: .PP .IP ESC\-7 反向換行符(escape後接7) .IP ESC\-8 反向半換行符(escape後接8) .IP ESC\-9 正向半換行符(escape後接9) .IP backspace 反向移動一列(8);在第一列則忽略. .TP carriage return (13) .IP newline 正向換行符(10);同時執行回車(carriage return)操作 .TP shift in 轉到正常字符集(15) .TP shift out 轉到備選的字符集(14) .IP space 正向移動一列(32) .IP tab 正向移動到下一個tab(9) .TP vertical tab 反向換行符(11) .PP 丟棄所有不被承認的控制字元和escape序列. .PP 當讀取字元時, .B col 保持著與字符集的聯絡,而且在輸出時確保字符集是正確的. .PP 如果輸入裝置試圖回覆到最近被重新整理的行, .B col 會顯示一條警告訊息. .SH SEE ALSO(另見) .BR expand (1) .BR nroff (1) .BR tbl (1) .SH HISTORY(歷史) .B col 命令出現於AT&T UNIX版本6. .SH "[中文版維護人]" .B riser .SH "[中文版最新更新]" 2000/12/6 .SH 《中國Linux論壇man手冊頁翻譯計劃》: .B http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR