1COL(1) User Commands COL(1)
2
3
4
6 col - filter reverse line feeds from input
7
9 col [options]
10
12 col filters out reverse (and half-reverse) line feeds so the output is
13 in the correct order, with only forward and half-forward line feeds.
14 It also replaces any whitespace characters with tabs where possible.
15 This can be useful in processing the output of nroff(1) and tbl(1).
16
17 col reads from standard input and writes to standard output.
18
20 -b, --no-backspaces
21 Do not output any backspaces, printing only the last character
22 written to each column position.
23
24 -f, --fine
25 Permit half-forward line feeds. Normally characters destined
26 for a half-line boundary are printed on the following line.
27
28 -h, --tabs
29 Output tabs instead of multiple spaces.
30
31 -l, --lines number
32 Buffer at least number lines in memory. By default, 128 lines
33 are buffered.
34
35 -p, --pass
36 Force unknown control sequences to be passed through unchanged.
37 Normally col will filter out any control sequences other than
38 those recognized and interpreted by itself, which are listed
39 below.
40
41 -x, --spaces
42 Output multiple spaces instead of tabs.
43
44 -V, --version
45 Display version information and exit.
46
47 -H, --help
48 Display help text and exit.
49
51 The col utility conforms to the Single UNIX Specification, Version 2.
52 The -l option is an extension to the standard.
53
55 The control sequences for carriage motion that col understands and
56 their decimal values are listed in the following table:
57
58 ESC-7 reverse line feed (escape then 7)
59 ESC-8 half reverse line feed (escape then 8)
60 ESC-9 half forward line feed (escape then 9)
61 backspace moves back one column (8); ignored in the
62 first column
63 newline forward line feed (10); also does carriage
64 return
65 carriage return [22m(13)
66 shift in shift to normal character set (15)
67 shift out shift to alternate character set (14)
68 space moves forward one column (32)
69 tab moves forward to next tab stop (9)
70 vertical tab reverse line feed (11)
71
72 All unrecognized control characters and escape sequences are discarded.
73
74 col keeps track of the character set as characters are read and makes
75 sure the character set is correct when they are output.
76
77 If the input attempts to back up to the last flushed line, col will
78 display a warning message.
79
81 A col command appeared in Version 6 AT&T UNIX.
82
84 expand(1), nroff(1), tbl(1)
85
87 The col command is part of the util-linux package and is available from
88 Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
89 linux/⟩.
90
91
92
93util-linux July 2014 COL(1)