#datamash
▻http://www.gnu.org/software/datamash
GNU datamash is a command-line program which performs basic numeric, textual and statistical operations on input textual data files.
# Example: calculate the sum and mean of values 1 to 10:
$ seq 10 | datamash sum 1 mean 1
55 5.5
j’ai tendance à utiliser harelba/q pour faire ce genre de trucs, mais c’est bien d’avoir ça sous la main
via @archiloque