Lets say there's a ftp site with a bunch of files I want to download - ftp://ftp.example.com, and they allow for an "anonymous login" over FTP.
Suppose that ftp://ftp.example.com has
file1.zip, file2.zip, ... , file100.zip
Also suppose that I have a list of the filepaths I want to download all in a bash variable like so:
Is there a way to do
wget $paths (i.e. download my list of two files) without having to see wget do for every file:
Connecting to ftp.example.com|10.10.10.10|:21... connected. Logging in as anonymous ... Logged In!
where wget logs in to the authenticates with the site once for every single file I download?