# Select text value of an XML element mathing given XPath expression ./xmlstarlet sel -t -m "/xml/table/rec[@id='2']" -v numField xml/table.xml