Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # array of URLs
- 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` )
- # names of downloaded files
- for ((i = 0; i < ${#urls[@]}; ++i)); do
- printf "Launching subprocess to DL %s to %s\n" "${urls[i]}" "${i}"
- curl -s -o "${i}.jpg" "${urls[i]}" &
- done
Advertisement
Add Comment
Please, Sign In to add comment