col [-bfpx] [-l num]
Filters out reverse (and half reverse) line feeds so the output is in the correct order with only
forward and half forward line feeds, and
replaces white-space with tabs or with replaces tabs with spaces.
Intended to be used for printers which cannot reverse the platen, cannot backsace and do not support the TAB function.
Useful for processing output of nroff and tbl.
|backspaces are not output, printing only the last character written to each column position.
|Forward half line feeds are permitted (''fine'' mode). |
Default: characters printed on a half line boundary are printed on the following line.
|Pass unknown control sequences through unchanged. |
Default: removes unrecognized control sequences
|exand tabs to multiple spaces.
|line buffering, at least |
num lines in memory. Default: 128
The control sequences recognized:
| forward line feed & carriage return (i.e. sets to first column)
| half forward line feed
| reverse line feed || |
| half reverse line feed
reverse line feed
| moves forward one column || |
| moves forward to next tab stop
| moves back one column|
(ignored in the first column)
| to alternate character set
| to normal character set
Unrecognized control characters and escape sequences are discarded.
Col keeps track of the character set as characters are read and makes sure the character set is correct
when they are output.
If the input attempts to back up to the last flushed line, col will display a warning message.
expand, nroff, tbl, column