GNU datamash GNU datamash is a command-line program which performs basic numeric, textual and statistical operations on input textual data files. Examples: calculate the sum and mean of values 1 to 10: $ seq 10 | datamash sum 1 mean 1 55 5.5 group text file by one column and calculate mean and sample standard deviation on another, with automatic sorting and header line processing: $ datamash --sor