264nm

Numbered Filename Downloader

Oct 15th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # Just a little file download script for ordered\numbered files within a folder.
  3. # Made to help a mate downloading Manga.
  4.  
  5.  
  6. echo "this will only work for files in numbered order"
  7. echo "i.e. starting with 1.jpg."
  8. echo "Copy link address to folder containing images"
  9. echo "i.e. if http://blerp.bj/67346/43/1.jpg"
  10. echo "then paste http://blerp.bj/67346/43/"
  11. echo ""
  12. read -p "Enter URL to folder containing images: " Url
  13. read -p "Enter file format i.e .jpg .bmp: " File
  14.  
  15. for x in {1..100000}
  16. do wget -O/dev/null -q $Url$x$File && wget $Url$x$File || exit
  17. done
Add Comment
Please, Sign In to add comment