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 Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Some UNIX systems.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.