strscan: make it work properly
[tools.git] / math / histogram.sh
1 #!/bin/sh
2 round "$1" | cut -d'.' -f1 | sort -n | uniq -c | sed 's|^\s*\([0-9]*\)\s\([0-9]*\)\s*$|\2 \1|'