summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@iki.fi>2008-01-24 17:50:00 +0200
committerLars Wirzenius <liw@iki.fi>2008-01-24 17:50:00 +0200
commitbccf9213c48251f1dbc34157e86cfdbcefc0b60c (patch)
tree871f7bbc3972136499102faac5671827b8e0684f
parent1694c9af851c1580d7167bd7718364311555cf9f (diff)
downloadextrautils-bccf9213c48251f1dbc34157e86cfdbcefc0b60c.tar.gz
Wrote a total command, inspired by something I saw cjwatson say on irc.
-rwxr-xr-xtotal4
1 files changed, 4 insertions, 0 deletions
diff --git a/total b/total
new file mode 100755
index 0000000..06e7be3
--- /dev/null
+++ b/total
@@ -0,0 +1,4 @@
+#!/usr/bin/awk -f
+
+{ total += $1 }
+END { print total }