Hands-on task
This task is step 22 of the course “JSON, YAML and XML in the terminal”
Count the elements
Count how many books (book) there are in total in /root/catalog.xml, and write the number to /root/count.txt.
What you'll practise:
- xmlstarlet
- xpath
- xpath functions
- count
- xml