Background
I am attempting to use a command, called xmllint
to parse an html file for a specific value inside a tag. All of the examples I have seen online use the --html
option alongside the --xpath
option in order to parse like in @nwellnhof's example:
xmllint --html --xpath '/html/body/h1[1]' - <<EOF
<BODY>
<H1>Dublin</H1>
EOF
However, my local version of xmllint does not contain the --xpath
option. I would like to figure out which version of the command I am using so I can parse html properly.
Question
How do I find which version of a command that I am using in linux?