Text and processing
The column command
Organises text into aligned columns. With -t it turns messy output into a clean table.
Syntax
column [-t] [-s SEP] [archivo]Most useful options
-tAligns by columns (table)-s SEPInput separatorCopy-ready examples
$ printf 'a bb\nccc d\n' | column -tCreate an aligned tableYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Without -t, column just fills equal-width columns, it does not align by separators.
FAQ
Is it the same as using tabs?
No: column computes each column's width and truly aligns them.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course