MPE/iX Shell and Utilities Reference Manual, Vol 1

c(1) MPE/iX Shell and Utilities c(1)
NAME
c — produce multi-column output
SYNOPSIS
c [–hVv ][–g gutterwidth][–w pagewidth][file ...]
DESCRIPTION
The c command reads lines from each input file, or from standard input if no file is specified.
c produces multi-column output from this input. It places as many input lines across the page
as will fit in the prescribed width, including a gutter between adjacent columns.
Options
c accepts the following options:
–g gutterwidth
specifies a gutterwidth measured in characters. The default is two characters.
–h orders input lines from left to right, horizontally. This is the default.
–V balances the columns so that they are all the same length, or as close as possible.
–v orders input lines vertically down the columns.
–w pagewidth
specifies the width of the entire page, in characters. The default pagewidth is 80
characters. If you do not set the width with the –w option, c checks to see if there is
an environment variable named
COLUMNS
. If so, c uses its value as the pagewidth,
in characters. For example, if you are using the
MPE/iX Shell,
export COLUMNS=132
sets a pagewidth of 132 characters.
EXAMPLES
Try the following to see the effect of these variants of the command:
ls /bin | c
ls/bin|c–v
ls/bin|c–V
ENVIRONMENT VARIABLES
c uses the following environment variable:
COLUMNS
used as the page width if you do not specify the –w option.
Commands and Utilities 1-69