4 ms·
If you need to handle XML, xmlstarlet (http://xmlstar.sourceforge.net http://xmlstar.sourceforge.net) is fantastic, and much more powerful than the standard lin
by thelibrarian 8y ago
If you need to handle XML, xmlstarlet (http://xmlstar.sourceforge.net http://xmlstar.sourceforge.net) is fantastic, and much more powerful than the standard line-oriented tools like sed and awk for this task.
Similarly jq (https://stedolan.github.io/jq/ https://stedolan.github.io/jq/) for JSON data is great.
- fiddlerwoaroof 8y agoThe only issue I have with xmlstarlet is that it can be sort of a pain when there are xml namespaces in the document. Most of the time, you just have to pass it the long option that ignores them all together
- CJKerr 8y agoAnd to round out the set, xsv (https://github.com/BurntSushi/xsv/ https://github.com/BurntSushi/xsv/) is a powerful toolkit for CSV.