Skip to main content
2 of 3
added 65 characters in body
JJoao
  • 12.8k
  • 1
  • 26
  • 45

Install xidel and use xpath. In my opinion the best point of view is from serviceInstance:

xidel f.xml -e '//serviceInstance/string-join((../../@name, machine, status),",")'
Adapter/Code1,123,Running
Adapter/Code1,456,Running
Adapter/Code2,123,Running
Adapter/Code2,456,Running
JJoao
  • 12.8k
  • 1
  • 26
  • 45