Advertisement
Guest User

fix this shit pls

a guest
Jul 30th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. test_album="http://imgur.com/a/SRkmI"
  3. test_album2="http://imgur.com/a/S2NNI"
  4. #album=$1
  5. album=$test_album2
  6. # Complicated at first, but not difficult at all
  7. title=`curl -s $album | grep "</title>" | sed 's/ - Imgur<\/title>//' | sed 's/  //g' | sed 's/ /_/g' | sed 's/[,\{\/]//g'`
  8. # bullshit because unzip doesn't support stdin
  9. mkdir "$title" ; curl "${album}/zip" > "${title}.zip" ; unzip -d${title}./ "$title.zip" ; # rm "$title.zip"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement