Created
November 5, 2009 19:39
-
-
Save richq/227321 to your computer and use it in GitHub Desktop.
script to download mp3s from podiobooks.com
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 | |
# 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