{"id":300,"date":"2019-10-21T19:40:15","date_gmt":"2019-10-21T17:40:15","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=300"},"modified":"2019-10-21T19:40:15","modified_gmt":"2019-10-21T17:40:15","slug":"col","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=300","title":{"rendered":"COL"},"content":{"rendered":"<p>COL(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COL(1)<\/p>\n<p>NAME<\/p>\n<p>col &#8211; filter reverse line feeds from input<\/p>\n<p>SYNOPSIS<\/p>\n<p>col [options]<\/p>\n<p>DESCRIPTION<\/p>\n<p>col filters out reverse (and half-reverse) line feeds so the output<br \/>\nis in the correct order, with only forward and half-forward line<br \/>\nfeeds.\u00a0 It also replaces any whitespace characters with tabs where<br \/>\npossible.\u00a0 This can be useful in processing the output of nroff(1)<br \/>\nand tbl(1).<\/p>\n<p>col reads from standard input and writes to standard output.<\/p>\n<p>OPTIONS<\/p>\n<p>-b, &#8211;no-backspaces<br \/>\nDo not output any backspaces, printing only the last character<br \/>\nwritten to each column position.<\/p>\n<p>-f, &#8211;fine<br \/>\nPermit half-forward line feeds.\u00a0 Normally characters destined<br \/>\nfor a half-line boundary are printed on the following line.<\/p>\n<p>-h, &#8211;tabs<br \/>\nOutput tabs instead of multiple spaces.<\/p>\n<p>-l, &#8211;lines number<br \/>\nBuffer at least number lines in memory.\u00a0 By default, 128 lines<br \/>\nare buffered.<\/p>\n<p>-p, &#8211;pass<br \/>\nForce unknown control sequences to be passed through<br \/>\nunchanged.\u00a0 Normally col will filter out any control sequences<br \/>\nother than those recognized and interpreted by itself, which<br \/>\nare listed below.<\/p>\n<p>-x, &#8211;spaces<br \/>\nOutput multiple spaces instead of tabs.<\/p>\n<p>-V, &#8211;version<br \/>\nDisplay version information and exit.<\/p>\n<p>-H, &#8211;help<br \/>\nDisplay help text and exit.<\/p>\n<p>NOTES<\/p>\n<p>The control sequences for carriage motion that col understands and<br \/>\ntheir decimal values are listed in the following table:<\/p>\n<p>ESC-7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 reverse line feed (escape then 7)<br \/>\nESC-8\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 half reverse line feed (escape then 8)<br \/>\nESC-9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 half forward line feed (escape then 9)<br \/>\nbackspace\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 moves back one column (8); ignored in the<br \/>\nfirst column<br \/>\nnewline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 forward line feed (10); also does carriage<br \/>\nreturn<br \/>\ncarriage return\u00a0\u00a0 (13)<br \/>\nshift in\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 shift to normal character set (15)<br \/>\nshift out\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 shift to alternate character set (14)<br \/>\nspace\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 moves forward one column (32)<br \/>\ntab\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 moves forward to next tab stop (9)<br \/>\nvertical tab\u00a0\u00a0\u00a0\u00a0\u00a0 reverse line feed (11)<\/p>\n<p>All unrecognized control characters and escape sequences are<br \/>\ndiscarded.<\/p>\n<p>col keeps track of the character set as characters are read and makes<br \/>\nsure the character set is correct when they are output.<\/p>\n<p>If the input attempts to back up to the last flushed line, col will<br \/>\ndisplay a warning message.<\/p>\n<p>SEE ALSO<\/p>\n<p>expand(1), nroff(1), tbl(1)<\/p>\n<p>STANDARDS<\/p>\n<p>The col utility conforms to the Single UNIX Specification, Version 2.<br \/>\nThe -l option is an extension to the standard.<\/p>\n<p>HISTORY<\/p>\n<p>A col command appeared in Version 6 AT&amp;T UNIX.<\/p>\n<p>AVAILABILITY<\/p>\n<p>The col command is part of the util-linux package and is available<br \/>\nfrom Linux Kernel Archive<br \/>\n\u27e8ftp:\/\/ftp.kernel.org\/pub\/linux\/utils\/util-linux\/\u27e9.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the util-linux (a random collection of Linux<br \/>\nutilities) project.\u00a0 Information about the project can be found at<br \/>\n\u27e8https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, send it to<br \/>\nutil-linux@vger.kernel.org.\u00a0 This page was obtained from the<br \/>\nproject&#8217;s upstream Git repository<br \/>\n(git:\/\/git.kernel.org\/pub\/scm\/utils\/util-linux\/util-linux.git) on<br \/>\n2014-12-30.\u00a0 If you discover any rendering problems in this HTML ver\u2010<br \/>\nsion of the page, or you believe there is a better or more up-to-date<br \/>\nsource for the page, or you have corrections or improvements to the<br \/>\ninformation in this COLOPHON (which is not part of the original man\u2010<br \/>\nual page), send a mail to\u00a0man-pages@man7.org<\/p>\n<p>util-linux\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 July 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COL(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>COL(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COL(1) NAME col &#8211; filter reverse line feeds from input SYNOPSIS col [options] DESCRIPTION col filters out reverse (and half-reverse) line feeds so the output is in the correct order, with only forward and half-forward line feeds.\u00a0 It also replaces any whitespace characters with tabs where possible.\u00a0 This can be useful in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-shell"],"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}