User's manual. Section 1.

COLS(1): columnate words


USAGE

        usage: cols [-Du] [-n ncols] [-w wid] {file}
            -D: debug
            -n ncols: set number of columns
            -u: use unix output
            -w wid: set max line width
        

DESCRIPTION

Cols columnates words writing one row at a time. First words go in the first row, then the second row and so on. Total text width is determined by using the underlying OS tty size, by default.

EXAMPLE

list files in columns:

        ; lf ,1 | cols -u
        

SOURCE

  • /zx/sys/src/clive/cmd/cols


User's manual. Section 1.