File: sel-if

package info (click to toggle)
xmlstarlet 1.6.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,472 kB
  • sloc: sh: 4,735; ansic: 4,183; xml: 1,936; makefile: 66; awk: 43
file content (4 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (7)
1
2
3
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