Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This SuperUser question isn't quite what I need. Is there a way to do something like this

wget ftp://myname:longpassword@someipddress/images/ -i file_list.txt

I want to use the same credentials and look in the same ftp directory and download files based upon a list of them in a file. I would prefer to have a simple list like this:

ABC.jpg
DEF.jpg
QRS.tif
FOL.dbf

rather than the complete ftp://myname:longpassword@someipddress/images/ in each file asked for.

Is that possible? If so what would be the syntax?

update: I accepted an answer here because it did answer my question, but anyone with an appropriate windows answer I would upvote at least also.

share|improve this question
up vote 2 down vote accepted

Assuming you're on Linux, try this:

xargs -i wget 'ftp://myname:longpassword@someipddress/images/{}' < file_list.txt
share|improve this answer
    
I am not, but I can be for this. Thank you. – datatoo Sep 5 '13 at 4:48
    
this looks cool but seems to be the same as specifying the files in a file complete with adreses - at least i can still see its logging in for each file on the row ... (and creating and removing the .listing, just to find out i already have the file :). Somehow some fiiles arent downloaded when i ask for /* - there is several thousands of them - so i thought specifying them would help, logging in for each file sounds crazy :) – mojzis Apr 14 '14 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .