Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
A shell tool to “tablify” input data

I have a program outputting something like this:

abc   defgh   ijklm
nopqr   stu  vw
xyza bcde   fghi

which I'd like to clean up to get something like this:

abc    defgh  ijklm
nopqr  stu    vw
xyza   bcde   fghi

I looked at column, tr and sed without seeing anything; do any of those work? Is there another tool I can use?

share|improve this question

marked as duplicate by rozcietrzewiacz, Michael Mrozek Sep 22 '11 at 3:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 14 down vote accepted

column -t file seems the way to go.

share|improve this answer

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