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.27 bin/ix-stats
ix-cli-0.0.26 bin/ix-stats
ix-cli-0.0.25 bin/ix-stats
ix-cli-0.0.24 bin/ix-stats
ix-cli-0.0.23 bin/ix-stats
ix-cli-0.0.22 bin/ix-stats
ix-cli-0.0.21 bin/ix-stats
ix-cli-0.0.20 bin/ix-stats
ix-cli-0.0.19 bin/ix-stats
ix-cli-0.0.18 bin/ix-stats
ix-cli-0.0.17 bin/ix-stats
ix-cli-0.0.16 bin/ix-stats
ix-cli-0.0.15 bin/ix-stats
ix-cli-0.0.14 bin/ix-stats
ix-cli-0.0.13 bin/ix-stats
ix-cli-0.0.12 bin/ix-stats
ix-cli-0.0.11 bin/ix-stats
ix-cli-0.0.10 bin/ix-stats
ix-cli-0.0.9 bin/ix-stats
ix-cli-0.0.7 bin/ix-stats