bash - How to use grep command to print value of a variable in a line? -
for example,consider below line
<workflowlink condition ="" fromtask ="start" totask ="cmd_start_run"/> from above line, need print start fromtask ="start" using grep command or using command.
try doing :
$ xmllint --xpath 'string(//workflowlink/@fromtask)' file start $ xmlstarlet sel -t -v 'string(//workflowlink/@fromtask)' file start $ saxon-lint --xpath 'string(//workflowlink/@fromtask)' file start xmllintlibxml2- xmlstarlet
- saxon-lint
Comments
Post a Comment