Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I tried this using just "column -t my_file" and don't see any problem with alignment. Commented Nov 22, 2013 at 18:20
  • If FIELD3 has spaces in it, it won't work unless you specify a different delimiter. Even so, mine is not aligning the first two columns even though they contain no spaces. Here is the results of column -t my_file: i.imgur.com/w6i1aGn.png
    – tomocafe
    Commented Nov 22, 2013 at 18:26
  • Have to leave for today. Will dig more into this tomorrow.. There must a solution. (You could use some more mighty language like python or perl of course. But awk + column should work.. don't know why)
    – hek2mgl
    Commented Nov 22, 2013 at 19:41
  • I think it might just be my machine -- it seems to work for other people. I have a fairly old system: Linux version 2.6.18-238.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Sun Dec 19 14:22:44 EST 2010
    – tomocafe
    Commented Nov 22, 2013 at 20:06