https://wp.jochen.hayek.name/blog-en/2016/02/17/xpath-within-shell-scripts/
doing XPath within shell scripts with a lightweight utility