diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-10-25 11:11:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-10-25 11:12:46 +1300 |
commit | f530a5fea7d733ef996fd6ba815d318af06094f0 (patch) | |
tree | 9a99fcc1a372a2c015d81f771295fb825b50a0a6 /bin/med.awk | |
parent | Restore missing header to maybe(1df) manual (diff) | |
download | dotfiles-f530a5fea7d733ef996fd6ba815d318af06094f0.tar.gz dotfiles-f530a5fea7d733ef996fd6ba815d318af06094f0.zip |
Corrections to a few of the agg scripts
Diffstat (limited to 'bin/med.awk')
-rw-r--r-- | bin/med.awk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/med.awk b/bin/med.awk index 34d81c41..83f0eb74 100644 --- a/bin/med.awk +++ b/bin/med.awk @@ -1,5 +1,4 @@ -# Get the median of a list of integers; if it has to average it, it uses the -# integer floor of the result +# Get the median of a list of numbers { vals[NR] = $1 } NR > 1 && vals[NR] < vals[NR-1] && !warn++ { printf "med: Input not sorted!\n" > "/dev/stderr" |