/usr/bin/wxmlgetvalue is in wsl 0.2.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/bash
MYNAME=`basename $0`
MYPATH=${0%/*}
NODATEDUMP=1
. /usr/share/wsl/wsl-functions
usage() {
${WSCOLORERR}
cat <<EOF
USAGE: $MYNAME XMLFilename ResultIndex PropertyName [AttributePattern...]
ResultIndex is 1-based. Specify 0 to search for the last occurrence.
One or two attributes may have the same pattern. For instance, attribute
Name and attribute CreationClassName. The following example helps limit
the response:
This command returns the second instance of a node named 'Selector'
and attribute 'ClassName' or "CreationClassName'
$ wxmlquery computersystemepr.xml 2 Selector ClassName
This command returns the second instance of a node named 'Selector'
and attribute 'Name'.
$ wxmlquery computersystemepr.xml 2 Selector \"Name
Requires: wsl
EOF
$WSCOLORNORM
exit 1
}
[ $# -lt 3 ] && usage
fSearchValueOf $@
echo ${PVALUE}
|