datamash

Perform numerical, textual and statistical operations on data

brewmacoslinux
Try with needOr install directly
Source

About

Tool to perform numerical, textual & statistical operations

Commands

datamash

Examples

Calculate sum of a column in a CSV file$ datamash -t, sum 2 < data.csv
Get basic statistics (mean, median, stdev) for a column$ datamash -t' ' mean 1 median 1 sstdev 1 < data.txt
Group by first column and count occurrences$ datamash -t, groupby 1 count 1 < data.csv