aboutsummaryrefslogtreecommitdiff
path: root/bin/tot.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tot.awk')
-rw-r--r--bin/tot.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/tot.awk b/bin/tot.awk
new file mode 100644
index 00000000..c25c718d
--- /dev/null
+++ b/bin/tot.awk
@@ -0,0 +1,3 @@
+# Total a column of integers
+{ tot += $1 }
+END { printf "%u\n", tot }