Use shell to download multiple files from multiple links

Solution 1:

man wget is a good place to start if you are unsure about the options a command supports:

  • wget -P /path/to/folder link1 link2 link3
  • Add all links to a file and then run wget -i FILE -P /path/to/folder

But if you want to auto-generate a link including numbers you may be better off using

  • wget -P /path/to/folder hello{00..99}world (works in bash and zsh)
  • cd /path/to/folder; curl -O 'hello[00-99]world'