Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a tool which outputs four columns of data with a space between each. However, the data items are variable length, and it's hard to read what's going on.

Is there a way I can line the output up using linux utilities to tabulate it for easy reading?

share|improve this question

1 Answer 1

try this:

cat $DataFile | column -t

in debian column is in package bsdmainutils. and of course you can also use column -t $DataFile

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.