Comment 3 for bug 1644703

Revision history for this message
Erik Auerswald (auerswal) wrote :

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.]