X-Git-Url: http://git.thejh.net/?p=tools.git;a=blobdiff_plain;f=math%2Fhistogram.sh;fp=math%2Fhistogram.sh;h=c10fc57fe68ce81b38ce038c1581a1a477b3f7c6;hp=0000000000000000000000000000000000000000;hb=23dee97330ca19edf089e9399bdfb6bc78354a5f;hpb=60706164dfb67737ccd4b761818eabce887d4214 diff --git a/math/histogram.sh b/math/histogram.sh new file mode 100755 index 0000000..c10fc57 --- /dev/null +++ b/math/histogram.sh @@ -0,0 +1,2 @@ +#!/bin/sh +round "$1" | cut -d'.' -f1 | sort -n | uniq -c | sed 's|^\s*\([0-9]*\)\s\([0-9]*\)\s*$|\2 \1|'