diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 22:49:28 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 22:49:28 +1200 |
commit | 677d0e5fdc76620253af865ca03fd602c0419047 (patch) | |
tree | a47d3e848aace0f9f2d7b7d2443f1e0588fab70a /bin/tot.awk | |
parent | Add more color-setting attempts to rgl(1df) (diff) | |
download | dotfiles-677d0e5fdc76620253af865ca03fd602c0419047.tar.gz dotfiles-677d0e5fdc76620253af865ca03fd602c0419047.zip |
Generalise mean,med,mode,tot(1df) to numbers
Not just integers
Diffstat (limited to 'bin/tot.awk')
-rw-r--r-- | bin/tot.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tot.awk b/bin/tot.awk index c25c718d..d1174d7b 100644 --- a/bin/tot.awk +++ b/bin/tot.awk @@ -1,3 +1,3 @@ # Total a column of integers { tot += $1 } -END { printf "%u\n", tot } +END { print tot } |