summaryrefslogtreecommitdiff
path: root/examples/sum1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sum1')
-rw-r--r--examples/sum13
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sum1 b/examples/sum1
new file mode 100644
index 0000000..03a24d1
--- /dev/null
+++ b/examples/sum1
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Calculating running sum on XML document
+./xmlstarlet sel -T -t -v "sum(/xml/table/rec/numField)" --nl xml/table.xml