Guest User

Untitled

a guest
Jan 12th, 2015
1,949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # array of URLs
  4. urls=( `curl https://www.storehouse.co/stories/r3rcy-gotham-7-5k|grep -oe "https://[^.]*.cloudfront.net/i/images/imgs/[0-9]*/original.jpg"|sort|uniq` )
  5. # names of downloaded files
  6.  
  7. for ((i = 0; i < ${#urls[@]}; ++i)); do
  8. printf "Launching subprocess to DL %s to %s\n" "${urls[i]}" "${i}"
  9. curl -s -o "${i}.jpg" "${urls[i]}" &
  10. done
Advertisement
Add Comment
Please, Sign In to add comment