Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 14 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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