.TH c "" "" Command
.PC "Print multi-column output"
\fBc [ \-l\fIN\fB ] [ \-w\fIN\fB ] [ \-012 ]\fR
.PP
.HS
.SH Options:
.IC \fB\-l\fIN\fR
Set the page length to \fIN\fR lines
.IC \fB\-w\fIN\fR
Set the page width to \fIN\fR columns
.IC \fB\-0\fR
Order fields horizontally across the page
.IC \fB\-1\fR
Order fields vertically down each column (default)
.IC \fB\-2\fR
Special case of \-1
.HE
.B 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.
.PP
.B c
recognizes the following options:
.RS
.IP "\fB\-l\fIN\fR"
Set the length of the page to
.I N
lines.
.B c
columnizes its output by pages when this option is
used with mode 1 or mode 2.
.IP "\fB\-w\fIN\fR"
Set the width of the page to
.I N
characters.
The default is 80.
.IP \fB\-0\fR
Multi-column mode 0.
Order the fields horizontally across the page.
.IP "\fB\-1\fR"
Multi-column mode 1 (default mode).
Order the fields vertically down each column;
the last column may be short.
.IP \fB\-2\fR
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.
.PP
Options may also be given in the environmental variable
.BR C ,
separated by white space.
Command line options override options in the environment.
For example,
.DM
	export C="\-l56 \-w72 \-2"
	c \-w80 <file1
.DE
.PP
has the same effect as
.DM
	c \-l56 \-w72 \-2 \-w80 <file1
.DE
.PP
This command sets the page width to 80 rather than to 72.
.SH "See Also"
.Xr commands, commands
.Xr export, export
.Xr pr pr
.SH Diagnostics
.B c
prints \*(QLout of memory\*(QR and returns an exit status of one
if it cannot allocate enough memory to process its input.
