1COL(1)                           User Commands                          COL(1)
2
3
4

NAME

6       col - filter reverse line feeds from input
7

SYNOPSIS

9       col [options]
10

DESCRIPTION

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

OPTIONS

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

NOTES

51       The control sequences for carriage  motion  that  col  understands  and
52       their decimal values are listed in the following table:
53
54              ESC-7             reverse line feed (escape then 7)
55              ESC-8             half reverse line feed (escape then 8)
56              ESC-9             half forward line feed (escape then 9)
57              backspace         moves  back  one  column  (8);  ignored in the
58                                first column
59              newline           forward line feed  (10);  also  does  carriage
60                                return
61              carriage return   (13)
62              shift in          shift to normal character set (15)
63              shift out         shift to alternate character set (14)
64              space             moves forward one column (32)
65              tab               moves forward to next tab stop (9)
66              vertical tab      reverse line feed (11)
67
68       All unrecognized control characters and escape sequences are discarded.
69
70       col  keeps  track of the character set as characters are read and makes
71       sure the character set is correct when they are output.
72
73       If the input attempts to back up to the last  flushed  line,  col  will
74       display a warning message.
75

SEE ALSO

77       expand(1), nroff(1), tbl(1)
78

STANDARDS

80       The  col  utility conforms to the Single UNIX Specification, Version 2.
81       The -l option is an extension to the standard.
82

HISTORY

84       A col command appeared in Version 6 AT&T UNIX.
85

AVAILABILITY

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)
Impressum