I have a C program that outputs two columns, utterly misaligned. The reason for the misalignment is lengths of words in the first column are very different.
I have an o
I just add missing in another answers options:
Emacs with M-x align-regexp, M-x align-string, etc. read more at http://www.emacswiki.org/emacs/AlignCommands
POSIX shell (possibly build-in) command printf:
while read f1 f2 f3 tail; do printf "%10s %5s | %s" $f1 $f3 $tail; done