aboutsummaryrefslogtreecommitdiff
path: root/bin/tot.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-08 22:49:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-08 22:49:28 +1200
commit677d0e5fdc76620253af865ca03fd602c0419047 (patch)
treea47d3e848aace0f9f2d7b7d2443f1e0588fab70a /bin/tot.awk
parentAdd more color-setting attempts to rgl(1df) (diff)
downloaddotfiles-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.awk2
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 }