column -t file.txt

Category: File Viewing & Editing

column -t file.txt

Format file as a table by aligning columns

Aligns data into neat columns by detecting field boundaries — makes tabular data much easier to read.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.