Sha256: 1d56fe1262ab226942b559de79ac38d5602d557cdd23e29e3c63d855a9860f10

Contents?: true

Size: 268 Bytes

Versions: 26

Compression:

Stored size: 268 Bytes

Contents

#!/bin/sh

echo "sum\tcount\taverage\tmedian\tmin\tmax"

sort -n |
awk 'BEGIN{c=0;sum=0;}\
/^[^#]/{a[c++]=$1;sum+=$1;}\
END{ave=sum/c;\
if((c%2)==1){median=a[int(c/2)];}\
else{median=(a[c/2]+a[c/2-1])/2;}\
print sum,"\t",c,"\t",ave,"\t",median,"\t",a[0],"\t",a[c-1]}'

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.6 bin/ix-stats
ix-cli-0.0.5 bin/ix-stats
ix-cli-0.0.4 bin/ix-stats
ix-cli-0.0.3 bin/ix-stats
ix-cli-0.0.2 bin/ix-stats
ix-cli-0.0.1 bin/ix-stats