column Command Examples

Format stdin or a file into multiple columns. Columns are filled before rows; the default separator is a whitespace. More information: https://manned.org/column.

printf "header1 header2\nbar foo\n" | column --output-width {{30}}

printf "header1 header2\nbar foo\n" | column --table

printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}

printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows