column
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>.
Install
- All systems
-
curl cmd.cat/column.sh
- Debian
-
apt-get install bsdmainutils
- Ubuntu
-
apt-get install bsdmainutils
- Alpine
-
apk add util-linux
- Arch Linux
-
pacman -S util-linux
- Kali Linux
-
apt-get install bsdmainutils
- CentOS
-
yum install util-linux
- Fedora
-
dnf install util-linux
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install bsdmainutils
- OS X
-
brew install util-linux
- Raspbian
-
apt-get install bsdmainutils
- Dockerfile
- dockerfile.run/column
- Docker
-
docker run cmd.cat/column column
powered by Commando
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>.
-
Format the output of a command for a 30 characters wide display:
printf "header1 header2\nbar foo\n" | column --output-width 30
-
Split columns automatically and auto-align them in a tabular format:
printf "header1 header2\nbar foo\n" | column --table
-
Specify the column delimiter character for the `--table` option (e.g. "," for CSV) (defaults to whitespace):
printf "header1,header2\nbar,foo\n" | column --table --separator ,
-
Fill rows before filling columns:
printf "header1\nbar\nfoobar\n" | column --output-width 30 --fillrows
© tl;dr; authors and contributors