Skip to content

Instantly share code, notes, and snippets.

@asauber
Last active December 16, 2016 20:16
Show Gist options
  • Save asauber/6a3d24c74e24c51f4cb2c7c782c4220b to your computer and use it in GitHub Desktop.
Save asauber/6a3d24c74e24c51f4cb2c7c782c4220b to your computer and use it in GitHub Desktop.
grab shing02's mp3s
wget -r -A mp3,mp4,m4a,ogg,flac,wav,aiff,3ga,wma,ram,aac,pcm,midi,snd,mid,m4p,ra,ape,aa3,xa,ac3,fla,mp4b,m2a,mp2,au,mp1 --no-parent http://www.e22.com/shing02
IFS=$'\n'; for f in $(find www.e22.com -type f | egrep ".*\.(mp3|mp4|m4a|ogg|flac|wav|aiff|3ga|wma|ram|aac|pcm|midi|snd|mid|m4p|ra|ape|aa3|xa|ac3|fla|mp4b|m2a|mp2|au|mp1)$"); do mv "$f" .; done
rm -r www.e22.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment