summaryrefslogtreecommitdiff
path: root/examples/look1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/look1')
-rw-r--r--examples/look13
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/look1 b/examples/look1
new file mode 100644
index 0000000..e40b7a9
--- /dev/null
+++ b/examples/look1
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Select text value of an XML element mathing given XPath expression
+./xmlstarlet sel -T -t -m "/xml/table/rec[@id='2']" -v numField --nl xml/table.xml