Skip to content

Instantly share code, notes, and snippets.

@richq
Created November 5, 2009 19:39
Show Gist options
  • Save richq/227321 to your computer and use it in GitHub Desktop.
Save richq/227321 to your computer and use it in GitHub Desktop.
script to download mp3s from podiobooks.com
#!/bin/sh
# script to download mp3s from podiobooks.com
wget $1 -O index.html
awk '/http:\/\/.*mp3/ {print}' index.html | sed 's%.*\(http://.*\.mp3\).*%\1%g' |\
while read line
do
filename=$(basename $line)
wget $line -O $filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment