COL(1) | General Commands Manual | COL(1) |
col
— filter
reverse line feeds and backspaces from input
col |
[-bfhx ] [-l
num] |
col
filters out reverse (and half-reverse)
line feeds so that the output is in the correct order with only forward and
half-forward line feeds, and replaces whitespace characters with tabs where
possible.
col
reads from the standard input and
writes to the standard output.
The options are as follows:
-b
-f
-h
-l
num-x
In the input stream, col
understands both
the escape sequences of the form escape-digit mandated by
Version 2 of the Single UNIX Specification
(“SUSv2”) and the traditional
BSD format escape-control-character. The control
sequences for carriage motion and their ASCII values are as follows:
-f
mode,
this sequence may also occur in the output stream.All 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.
A col
command appeared in
Version 5 AT&T UNIX.
February 8, 2020 | OpenBSD-current |