I used to know of a command -- an actual command mind you, not sed/awk magic -- that formatted its input to be aligned in columns. For example, if you ran:

% echo -e "aaaaa bbbbbbb\ncc ddd"
aaaaa bbbbbbb
cc ddd

But if you ran the output through the command which I've forgotten the name of:

% echo -e "aaaaa bbbbbbb\ncc ddd" | mystery_command
aaaaa    bbbbbbb
cc       ddd

Does anyone know the name of that command?

link|improve this question
feedback

1 Answer

up vote 7 down vote accepted

It's column. Try for example echo -e "aaaaa bbbbbbb\ncc ddd" | column -t.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.