I really needed something like `jq`, but for XML (i.e. XPath). A quick look at the Debian repos told me they provide `xmlstarlet`, and it's exactly that.

E.g., to extract all URLs from an Internet Archive collection RSS feed:

`xmlstarlet sel -t -v "/rss/channel/item/enclosure/@url" collection.rss`


For some reason, I keep thinking that the Mastodon web client renders Markdown in toots, and I keep getting disappointed.

· · Web · 0 · 0 · 2
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!