Show some statistics of input numbers.
$ go get github.com/yuya-takeyama/numstat
Given following data,
1
2
3
4
5
6
7
8
9
10
$ cat numbers.txt | numstat
Count: 10
Max: 10
Min: 1
Sum: 55
Avg: 5.5
$ cat numbers.txt | numstat --json
{"avg":5.5,"count":10,"max":10,"min":1,"sum":55}
The MIT License
Yuya Takeyama