The 'column' utility from package 'bsdmainutils' can be used to properly align the columns:
[The web interface might "improve" the output by turning any run of space characters into a single space, removing the intended illustrative effect, as can be seen in the comment above] $ datamash -g 2 min 3 max 3 < /usr/share/doc/datamash/examples/scores.txt | column -s$'\t' -t Arts 46 88 Business 79 94 Health-Medicine 72 100 Social-Sciences 27 90 Life-Sciences 14 91 Engineering 39 99 [With this specific input, one need not specify the separator, because no column comprises "blank" characters, i.e., the "-s" option can be omitted here, but not in general for the so called "TSV" format.] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1644703 Title: columns are not properly aligned To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/datamash/+bug/1644703/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs