Shell Scripting

December 31, 2024 at 1 PM

Wife: “I’d like to download all the episodes of this podcast after such a date for the kids.”

Me: “I can do that (with wget, ripgrep, and parallel)!”

wget -o feed.xml https://somewebsite.com/podcast-feed.xml

line=$(rg -n "Jul 2024" feed.xml | cut -d':' -f1)
head -n "$line" feed.xml | rg -o 'https://.*?\.mp3' | parallel

I use these tools and many others at work, but it’s a little extra special, somehow, to help in this way at home.

Related Posts