Sitelet https://linuxcommandlibrary.com/man/column
LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

column

format text into aligned columns

TLDR

Format output for specific width
$ printf "header1 header2\nbar foo\n" | column -c 30
copy
Auto-align columns in tabular format
$ printf "header1 header2\nbar foo\n" | column -t
copy
Specify column delimiter for table mode
$ printf "header1,header2\nbar,foo\n" | column -t -s ,
copy
Fill rows before columns
$ printf "header1\nbar\nfoobar\n" | column -c 30 -x
copy

SYNOPSIS

column [options] [file...]

DESCRIPTION

column formats text from stdin or a file into multiple columns. By default, columns are filled before rows using whitespace as separator.The table mode (-t) is particularly useful for aligning structured data into readable tables.

PARAMETERS

-c, --output-width width

Output width in characters
-t, --table
Create a table with aligned columns
-s, --separator chars
Column delimiters for table mode (default: whitespace)
-x, --fillrows
Fill rows before filling columns
-o, --output-separator string
Table output column separator

INSTALL

sudo apt install bsdextrautils
copy
sudo apk add util-linux-misc
copy

CAVEATS

Part of util-linux. The table mode requires consistent delimiter usage. Very long lines may cause formatting issues.

SEE ALSO

colrm(1), cut(1), paste(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid