misc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit d417e5cdc57ae679fba78f20702c0dd9677f1fa0
parent b585e6dd16fca7c0ac4c4f920f6b4cbf3fe5bb31
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 19 May 2022 18:46:18 -0700

add stats.awk

Diffstat:
Astats.awk | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/stats.awk b/stats.awk @@ -0,0 +1,5 @@ +# basic stats about a list: mean, median +sort -n | awk '{ + sum += $1; + a[i++]=$1; } END { print "median: " a[int(i/2)]; print "mean: " sum / NR; +}'