📄 col.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>col</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_001_014_111"> </a>NAME</h4><blockquote>col - filter reverse line-feeds (<b><a href="intro.html#tag_001_003_003">LEGACY</a></b>)</blockquote><h4><a name = "tag_001_014_112"> </a>SYNOPSIS</h4><blockquote><pre><code>col <b>[</b>-bfpx<b>]</b> </code></pre></blockquote><h4><a name = "tag_001_014_113"> </a>DESCRIPTION</h4><blockquote>The<i>col</i>utilityreads from the standard input and writes to the standard output.It performs the line overlays implied by reverse line-feeds,and by forward and reverse half-line-feeds.Unless<b>-x</b>is used, allblank charactersin the input will be converted totab characterswherever possible.<p>TheASCIIcontrol charactersSOandSIare assumed by<i>col</i>to start and end text in an alternative character set.The character set to which each input character belongs is remembered,and on outputSIandSOcharacters are generated as appropriate to ensurethat each character is written in the correct character set.<p>On input, the only control characters accepted arespace,backspace,tab,carriage-returnandnewline characters,SI,SO,VT,reverse line-feed, forward half-line-feed andreverse half-line-feed.TheVTcharacter is an alternative form of full reverse line-feed,included forcompatibility with some earlier programs of this type.The only other characters to be copied to the output arethose that are printable.<p>The ASCII codes for the control functions and line-motionsequences mentioned above are as given in the table below.ESC stands for the ASCII escape character, with the octal code 033;ESC<b>-x</b> means a sequence of two characters,ESC followed by the character<b>x</b>.<pre><dl compact><dt> <dd><table <tr valign=top><td align=left>reverse line-feed<td align=left><small>ESC</small>-7<tr valign=top><td align=left>reverse half-line-feed<td align=left><small>ESC</small>-8<tr valign=top><td align=left>forward half-line-feed<td align=left><small>ESC</small>-9<tr valign=top><td align=left>vertical-tab (<small>VT</small>)<td align=left>013<tr valign=top><td align=left>start-of-text (<small>SO</small>)<td align=left>016<tr valign=top><td align=left>end-of-text (<small>SI</small>)<td align=left>017</table></dl></pre></blockquote><h4><a name = "tag_001_014_114"> </a>OPTIONS</h4><blockquote>The<i>col</i>utility supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b> </a> .The following options are supported:<dl compact><dt><b>-b</b><dd>Assume that the output device in use is not capable of backspacing.In this case, if two or more characters are to appear in the same place,only the last one read will be output.<dt><b>-f</b><dd>Suppress the normal treatment of half-line motions.Although<i>col</i>accepts half-line motions in its input, it normally does notemit them on output.Instead, text that would appear between lines is moved to the next lowerfull-line boundary.By suppressing this treatment, the output from<i>col</i>may contain forward half-line-feeds,but will still never contain either kind of reverse-line motion.<dt><b>-p</b><dd>Force escape sequences to be passed through unchanged.Normally,<i>col</i>will remove any escape sequences found in its input that arenot specified above.<dt><b>-x</b><dd>Prevent<i>col</i>from convertingblank characterstotab characterson output wherever possible.Tab stops are considered to be at each column position<i>n</i>such that<i>n</i>modulo 8 equals 1.</dl></blockquote><h4><a name = "tag_001_014_115"> </a>OPERANDS</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_116"> </a>STDIN</h4><blockquote>The standard input is a text file to be translated.</blockquote><h4><a name = "tag_001_014_117"> </a>INPUT FILES</h4><blockquote>None.<br></blockquote><h4><a name = "tag_001_014_118"> </a>ENVIRONMENT VARIABLES</h4><blockquote>The following environment variables may affect the execution of<i>col</i>:<dl compact><dt><i>LANG</i><dd>Provide a default value for the internationalisation variablesthat are unset or null.If<i>LANG</i>is unset or null, the corresponding value from theimplementation-dependent default locale will be used.If any of the internationalisation variables contains an invalid setting, theutility will behave as if none of the variables had been defined.<dt><i>LC_ALL</i><dd>If set to a non-empty string value,override the values of all the other internationalisation variables.<dt><i>LC_CTYPE</i><dd>Determine thelocale for the interpretation of sequences of bytes of text data ascharacters (for example, single- as opposed to multi-byte charactersin arguments and input files).<dt><i>LC_MESSAGES</i><dd>Determine the locale that should be used to affectthe format and contents of diagnosticmessages written to standard error.<dt><i>NLSPATH</i><dd>Determine the location of message cataloguesfor the processing of<i>LC_MESSAGES .</i></dl></blockquote><h4><a name = "tag_001_014_119"> </a>ASYNCHRONOUS EVENTS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_120"> </a>STDOUT</h4><blockquote>The standard output is a text file, translated from thestandard input.</blockquote><h4><a name = "tag_001_014_121"> </a>STDERR</h4><blockquote>Used only for diagnostic messages.</blockquote><h4><a name = "tag_001_014_122"> </a>OUTPUT FILES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_123"> </a>EXTENDED DESCRIPTION</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_124"> </a>EXIT STATUS</h4><blockquote>The following exit values are returned:<dl compact><dt>0<dd>Successful completion.<dt>>0<dd>An error occurred.</dl></blockquote><h4><a name = "tag_001_014_125"> </a>CONSEQUENCES OF ERRORS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_126"> </a>APPLICATION USAGE</h4><blockquote>The use of the<b>-x</b>option may increase or decrease printing time,depending on the printer type.<p>Local vertical motions that would result in backing up over the firstline of the document are ignored.As a result, the first line must not have any superscripts.<p>The use of the<b>-f</b>or<b>-p</b>options is discouraged unless the useris aware of the consequences of passing unusual escape sequencesto the terminal.</blockquote><h4><a name = "tag_001_014_127"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_128"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_129"> </a>SEE ALSO</h4><blockquote>None.<br></blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -