summaryrefslogtreecommitdiff
path: root/total.1
diff options
context:
space:
mode:
Diffstat (limited to 'total.1')
-rw-r--r--total.111
1 files changed, 11 insertions, 0 deletions
diff --git a/total.1 b/total.1
new file mode 100644
index 0000000..ae45d89
--- /dev/null
+++ b/total.1
@@ -0,0 +1,11 @@
+.TH TOTAL 1
+.SH NAME
+total \- add numbers in first column, write total
+.SH SYNOPSIS
+.B total
+.IR file ...
+.SH DESCRIPTION
+.B total
+reads files named on the command line, or the standard input if none given,
+and adds together the numbers in the first column of each line.
+At the end, it writes out the sum.