summaryrefslogtreecommitdiff
path: root/examples/sort1
blob: aa213169a668820998f6410c8403369f51e02e3b (plain)
1
2
3
#!/bin/sh
# Query XML document and produce sorted text table
./xmlstarlet sel -T -t -m /xml/table/rec -s D:N:- "@id" -v "concat(@id,'|',numField,'|',stringField)" -n xml/table.xml