summaryrefslogtreecommitdiff
path: root/examples/delete1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/delete1')
-rw-r--r--examples/delete13
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/delete1 b/examples/delete1
new file mode 100644
index 0000000..620e540
--- /dev/null
+++ b/examples/delete1
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Delete elements matching XPath expression
+./xmlstarlet ed -d '/xml/table/rec[@id="2"]' xml/table.xml