summaryrefslogtreecommitdiff
path: root/examples/sort2
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/sort2
downloadxmlstarlet-submit/tizen_2.3/20140531.114811.tar.gz
xmlstarlet-submit/tizen_2.3/20140531.114811.tar.bz2
xmlstarlet-submit/tizen_2.3/20140531.114811.zip
Diffstat (limited to 'examples/sort2')
-rw-r--r--examples/sort24
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/sort2 b/examples/sort2
new file mode 100644
index 0000000..49a6d45
--- /dev/null
+++ b/examples/sort2
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Sort on two fields
+./xmlstarlet sel -T -t -m /root/elem -s A:N:U @rank -s A:T:U @name -v @name -n xml/unsorted.xml
+