While using curl, you can use brackets1 and curly brackets2 to download multiple files. But soon you will face the problem. If you use -o
option, files merge into one. If you use -O
option to use the original file name, you can't set the download path.
Simply changing the current directory with the cd
command lets you set the download location.
I struggled with this problem but all I could find was someone saying "use wget" and AI suggesting a for loop. But it turned out to be so simple.