Skip to content

Instantly share code, notes, and snippets.

@steingrd
Created September 6, 2012 17:18
Show Gist options
  • Save steingrd/3658707 to your computer and use it in GitHub Desktop.
Save steingrd/3658707 to your computer and use it in GitHub Desktop.
Script for downloading Radioresepsjonen podcasts
#!/bin/bash
wget http://podkast.nrk.no/program/radioresepsjonen.rss -O radioresepsjonen.rss
grep enclosure radioresepsjonen.rss | cut -d '"' -f2 | cut -d '?' -f1 > urls.txt
for line in $(cat urls.txt); do
fname=$(echo $line | cut -d '/' -f6)
if [ ! -e $fname ]; then
wget $line
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment