aboutsummaryrefslogtreecommitdiff
path: root/bin/tot.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tot.awk')
-rw-r--r--bin/tot.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/tot.awk b/bin/tot.awk
index eda25724..add5f00e 100644
--- a/bin/tot.awk
+++ b/bin/tot.awk
@@ -1,3 +1,4 @@
# Total a list of numbers
+BEGIN { tot = 0 }
{ tot += $1 }
END { print tot }