curl $1 | grep -E "http.*\.mp3" | sed "s/.*\(http.*\.mp3\).*/\1/" | xargs wget The difference between the original version provided and this one is that this one works rather than outputting a wget error 3 By: theodric 2015-09-17 13:19:53 grepsedxargsbashxargswgetgrepxmlrsspodcast This script can be used to download enclosed files from a RSS feed.

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too.

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Related Articles