Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. # download files using wget
  3. # URLs go in queue.txt
  4.  
  5. cat queue.txt >> download.log
  6.  
  7. while [ -s queue.txt ]; do
  8.     wget -r --no-parent --reject "index.html*" -e robots=off $(head -n 1 queue.txt) | tee download.log
  9.     sed -i '1d' queue.txt
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement