- col - filter reverse line-feeds
- col [ options ]
- col reads from standard input and writes onto standard output. 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, and replaces
white-space characters with tabs where possible. This can be useful in processing the output of nroff(1)
- The control sequences for carriage motion that col understands and their decimal values are listed in the
- ESC-7?reverse line feed (escape then 7).
- half reverse line feed (escape then 8).
- half forward line feed (escape then 9).
- moves back one column (8); ignored in the first column.
- carriage return
- forward line feed (10); also does carriage return.
- shift in
- shift to normal character set (15).
- shift out
- shift to alternate character set (14).
- moves forward one column (32).
- moves forward to next tab stop (9).
- vertical tab
- reverse line feed (11).
- All unrecognized control characters and escape sequences are discarded.
- If the -b option is given, col assumes 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.
- Although col accepts half-line motions in its input, it normally does not emit them on output. Instead, text
that would appear between lines is moved to the next lower full-line boundary. This treatment can be suppressed by the
-f (fine) option; in this case, the output from col may contain forward half-line-feeds (ESC-9),
but will still never contain either kind of reverse line motion.
- Assume that the device cannot backpace.
- Allow half forward line feeds. This is the default.
- Compress spaces into tabs.
- -l lines
- lines is the maximum number of lines to keep in memory. The default value is 128
- Do not compress spaces into tabs.
- Successful completion.
- One or more errors occurred.
- expand(1), nroff(1), tbl(1)
- col (AT&T Labs Research) 1999-06-20
- Michael Rendell
- Copyright © 1990-2010 The Regents of the University of California