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 fit in the prescribed width, including a gutter between adjacent columns.
specifies a gutterwidth measured in characters. The default gutterwidth is two characters.
orders input lines from left to right, horizontally. This is the default.
balances the columns so that they are all the same length, or as close as possible.
orders input lines vertically down the columns.
specifies the width of the entire page, in characters. The default pagewidth is 80 characters. If you do not set the width with the
-woption, c checks to see if the environment variable COLUMNS is set. If so, c uses its value as the pagewidth, in characters. For example, if you are using the MKS KornShell:
sets a pagewidth of 132 characters. If you are using cmd.exe, you can do the same thing with:
Try the following to see the effect of these variants of the command:
ls ROOTDIR/bin | c ls ROOTDIR/bin | c -v ls ROOTDIR/bin | c -V
Possible exit status values are:
Failure due to any of the following:
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012. Some UNIX systems.
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.5 Documentation Build 3.