01 January, 2020

wget files via loop

Here is a very handy method for downloading files via a loop using wget:

# wget http://domain.org/_{001..656}.jpg

Note the curly brackets, read as from 001 to 656 or whatever number of files you need.

After download you may want to check if all files are there, try something like:

# ls | wc -l

No comments: