# I will hide the original source by [somewher], the file name will start by [abcd] # 1st version: just assume there're around unlimit file. Will halt the command by using `Ctrl + C` when programs throw 404 for i in $(seq 1 10000); do curl -o abcd-${i}.jpg https://somewhere/${i}; done # 2nd version: skip the progress bar and output only the http status code. for i in $(seq 1 10000); do curl -w "%{http_code}" -s -o abcd-${i}.jpg https://somewhere/${i} | xargs; done # 3rd version: there're around 130 images. So will download 150 images. After that can delete the empty image by UI (open the folder and check the thumbnail) for i in $(seq 1 150); do curl -s -o abcd-${i}.jpg https://somewhere/${i} | xargs; done # 4rd version: Create a nested loop for download multi-chapters # j will be the chapter number, i is the page number for j in $(seq 1 9); do ; for i in $(seq 1 150); do curl -o 0${j}/abcd${j}-${i}.jpg https://somewhere${j}/${i} | xargs; done; done;