File: sel-xpath-m

package info (click to toggle)
xmlstarlet 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,412 kB
  • ctags: 656
  • sloc: sh: 4,735; ansic: 4,183; xml: 1,936; makefile: 70; awk: 43
file content (6 lines) | stat: -rwxr-xr-x 146 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
#!/bin/sh
the_test() {
    ./xmlstarlet sel --text -t -m "/*[boolean($1)]" -v "$1" --nl xml/foo.xml
}

. "${srcdir-..}"/examples/foreach-xpath.sh