Skip to content

v1.1.13 - New tool: tsv-pretty

Compare
Choose a tag to compare
@jondegenhardt jondegenhardt released this 23 Sep 21:47
· 290 commits to master since this release

NOTE: Pre-built binaries for this release are no longer available. Please use binaries from the latest release.

Changes in v1.1.13: New tool, tsv-pretty.

tsv-pretty prints TSV data in an aligned fasion for command-line readability. Headers are detected automatically and numeric values aligned. An example, first without formatting:

$ cat sample.tsv
Color   Count   Ht      Wt
Brown   106     202.2   1.5
Canary Yellow   7       106     0.761
Chartreuse	1139	77.02   6.22
Fluorescent Orange	422     1141.7  7.921
Grey	19	140.3	1.03

Now with tsv-pretty, using header underlining and float formatting:

$ tsv-pretty -u -f sample.tsv
Color               Count       Ht     Wt
-----               -----       --     --
Brown                 106   202.20  1.500
Canary Yellow           7   106.00  0.761
Chartreuse           1139    77.02  6.220
Fluorescent Orange    422  1141.70  7.921
Grey                   19   140.30  1.030