diff options
Diffstat (limited to 'examples/update-attr1')
-rw-r--r-- | examples/update-attr1 | 3 |
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 |