Advertisement

03.31.2008 at 07:25PM PDT, ID: 23284626
[x]
Attachment Details

I need a bash script to wget multiple files

Asked by wardjame in Bourne-Again Shell (bash), Programming Languages, Shell Scripting

Tags: bash

Hi All,
I need  a cash shell script to go out and fetch a bunch of xml files stored on a password protected ftp site.  I'm about half way there with the following command:
wget -O myfile1.xml ftp://myuser:mypas@ftp1.example.com/xmlfile1.xml

I just need this to go through and grab about 10 files and give them sequential names I would also like an array of the names of the xml files I want to retrieve so I can loop through them and get each one.Start Free Trial
[+][-]03.31.2008 at 07:42PM PDT, ID: 21250843

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 08:44PM PDT, ID: 21251099

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 08:57PM PDT, ID: 21251162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 09:00PM PDT, ID: 21260123

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 09:27PM PDT, ID: 21260195

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Bourne-Again Shell (bash), Programming Languages, Shell Scripting
Tags: bash
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628