wget & text file

Posted on 2006-04-06
Last Modified: 2010-04-21
Lets say i have a text file full of links  like that:

and lets say the file's name is "list"

How can I run wget in a way that will proccess and download aautomaticaly all the files in the list,but
1 by 1, meaning, that it will download the first and after it finishes it will download the second and then the third, etc etc.

Any ideas?
Question by:MaRiOsGR
    LVL 84

    Assisted Solution

    while read url ; do wget $url; done < list
    LVL 23

    Accepted Solution

    From the wget man page:

    "     -   You have a file that contains the URLs you want to download?  Use
               the -i switch:

                       wget -i I<file>
    LVL 51

    Assisted Solution

    wget `wget -O - http://dom.tld/list`

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now