COHERENT manpages
This page displays the COHERENT manpage for c [Print multi-column output].
List of available manpages
Index
c -- Command
Print multi-column output
c [ -lN ] [ -wN ] [ -012 ]
c reads lines from the standard input and writes them in columns on the
standard output. The longest input line and the width of the page
determine how many columns will fit across the page.
c recognizes the following options:
-lN Set the length of the page to N lines. c columnizes its output by
pages when this option is used with mode 1 or mode 2.
-wN Set the width of the page to N characters. The default is 80.
-0 Multi-column mode 0. Order the fields horizontally across the page.
-1 Multi-column mode 1 (default mode). Order the fields vertically down
each column; the last column may be short.
-2 Multi-column mode 2. Order the fields similarly to mode 1, but place
blank fields in the last output line rather than the last column.
Options may also be given in the environmental variable C, separated by
white space. Command line options override options in the environment.
For example,
export C="-l56 -w72 -2"
c -w80 <file1
has the same effect as
c -l56 -w72 -2 -w80 <file1
This command sets the page width to 80 rather than to 72.
See Also
commands,
export,
pr
Diagnostics
c prints ``out of memory'' and returns an exit status of one if it cannot
allocate enough memory to process its input.

















