summaryrefslogtreecommitdiff
path: root/examples/update-attr1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/update-attr1')
-rw-r--r--examples/update-attr13
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/update-attr1 b/examples/update-attr1
new file mode 100644
index 0000000..9913961
--- /dev/null
+++ b/examples/update-attr1
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Update value of an attribute
+./xmlstarlet ed -u '/xml/table/rec[@id=3]/@id' -v 5 xml/tab-obj.xml