tips
All tips
2 tips Xml
One command, setting or habit at a time about Xml: what it does, the line to copy and a caveat or two.
Text processing 2
-
Change or delete one specific XML node in place, picked by XPath.
xmlstarlet ed -u '//item[@id="1"]/title' -v 'Changed' feed.xml -
Read single values from an XML file with an XPath, from the command line.
xmlstarlet sel -t -v '//item/title' -n feed.xml
Nothing in this filter yet.