The best in command line xml: XMLStarlet

Quite some time ago I wrote about using xsltproc to process xml on the command line. Thank fully someone pointed out XMLStarlet.? I now use XMLStarlet almost every day.? I work with a variety of REST based API\’s gather information. XMLStartlet along with a simple for loop or xargs gives …

If you are on fedora then you can use xmlstarlet in the following way. First install the package:

sudo yum install xmlstartlet

Now, you can replace xml with xmlstarlet in the examples given in the above post. You can try the script below:


1 thought on “The best in command line xml: XMLStarlet”

This site uses Akismet to reduce spam. Learn how your comment data is processed.