How to do it…

We will provide a URL in curl, and using the xml2 tool, we will parse the RSS feed. Run the following command in your Terminal:

$ curl -sL https://imdb.com | xml2 | head

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.