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 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -