An even better solution is to use vnlog data, which is supported by datamash:
$ ( echo '# name subject score'; cat /usr/share/doc/datamash/examples/scores.txt ) \ | datamash --vnlog -g subject min score max score \ | vnl-align # GroupBy(subject) min(score) max(score) Arts 46 88 Business 79 94 Health-Medicine 72 100 Social-Sciences 27 90 Life-Sciences 14 91 Engineering 39 99 (this is a nicely aligned table when viewed in anything other than ubuntu launchpad) Note that: - The data input was an unlabeled set of columns, that we labelled. Any real dataset you work with should have labels to begin with - We told datamash the names of the columns to operate on. So a future dataset with a different column ordering would still just work with this command - We used the vnl-align tool to line up the columns -- 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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
