TIL: column -t command to format output

:cli:

column -t command can be used to pretty print output of files (e.g. database exports) by aligning columns nicely.

Original content:

pawka@kyloren > cat file.txt
aa-aaaa PHID-REPO-qb3mtuk2we6ivy7xw2nx  6154
bb/bbbbbb       PHID-REPO-bampn53k6a7zwzr76rez  3235
cccc/ccccc-cccc-ccccccccc       PHID-REPO-scvhcxnrs4nyrzrs64jc  2433
ddd-dddd        PHID-REPO-uexvk77yeovy63fhokqw  1269
eeeeee/eee      PHID-REPO-hmdgak5gad4rxiter65h  1266

Formatted content:

pawka@kyloren > cat file.txt | column -t
aa-aaaa                    PHID-REPO-qb3mtuk2we6ivy7xw2nx  6154
bb/bbbbbb                  PHID-REPO-bampn53k6a7zwzr76rez  3235
cccc/ccccc-cccc-ccccccccc  PHID-REPO-scvhcxnrs4nyrzrs64jc  2433
ddd-dddd                   PHID-REPO-uexvk77yeovy63fhokqw  1269
eeeeee/eee                 PHID-REPO-hmdgak5gad4rxiter65h  1266
``