Created
March 29, 2011 11:27
-
-
Save comewalk/892192 to your computer and use it in GitHub Desktop.
download an enclosure from metalheadz podcast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -L http://www.metalheadz.co.uk/podcast/podcast2010.xml -o metalheadz.podcast2010.xml | |
grep -nr enclosure metalheadz.podcast2010.xml | perl -nle '($url = $_) =~ s/^.*url="([^"]+)".*$/$1/g; print $url' | head -n 1 | awk '{print "curl -O "$1}' | sh - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment