Columnate lists.

Synopsis

column [OPTION]... [FILE]...

Description

Format input into multiple columns. By default, fills rows first. Use -t to create a table based on whitespace-delimited input. Runs in the just-bash WASM shell inside SLICC.

Options

-t Create a table (determine columns from input).

-s SEP Input field delimiter (default: whitespace).

-o SEP Output field delimiter (default: two spaces).

-c WIDTH Output width for fill mode (default: 80).

-n Don't merge multiple adjacent delimiters.

Examples

$ ls | column

Fill columns with ls output.

$ cat data | column -t

Format as a table.

$ column -t -s ',' file.csv

Format CSV as a table.

See Also

paste, nl, sort