Hands-on task
This task is step 21 of the course “JSON, YAML and XML in the terminal”
Extract an attribute value
From /root/catalog.xml, extract the value of the genre attribute of the book titled Shell Scripting and write it to /root/genre.txt.
What you'll practise:
- xmlstarlet
- xpath
- attributes
- predicates
- xml