summaryrefslogtreecommitdiff
path: root/examples/ed-backref1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ed-backref1')
-rw-r--r--examples/ed-backref15
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/ed-backref1 b/examples/ed-backref1
new file mode 100644
index 0000000..985ce9b
--- /dev/null
+++ b/examples/ed-backref1
@@ -0,0 +1,5 @@
+#!/bin/sh
+./xmlstarlet ed \
+ -s /xml/table/rec -t elem -n new-field -v new-value \
+ -i '$prev' -t attr -n new-attr -v new-attr-value \
+ xml/table.xml