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 - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -