summaryrefslogtreecommitdiff
path: root/examples/sel-if
diff options
context:
space:
mode:
authorSehong Na <sehong.na@samsung.com>2014-05-31 13:20:46 +0900
committerSehong Na <sehong.na@samsung.com>2014-05-31 13:20:46 +0900
commit7122fb9745e4622cb4c5d340cf1557e2fda1efe3 (patch)
tree393207d68983c3b587733b83714bef2de2457025 /examples/sel-if
downloadxmlstarlet-tizen_2.3.tar.gz
xmlstarlet-tizen_2.3.tar.bz2
xmlstarlet-tizen_2.3.zip
Diffstat (limited to 'examples/sel-if')
-rw-r--r--examples/sel-if4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/sel-if b/examples/sel-if
new file mode 100644
index 0000000..c6acd1d
--- /dev/null
+++ b/examples/sel-if
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo '<x/>' | ./xmlstarlet sel -T -t -i 'true()' -o yes -n --else -o no -n -b -o all -n
+echo '<x/>' | ./xmlstarlet sel -T -t -i 'false()' -o yes -n --else -o no -n -b -o all -n
+echo '<x/>' | ./xmlstarlet sel -T -t -i 'false()' -o yes -n --elif 'true()' -o maybe -n --else -o no -n -b -o all -n