wget a list of files

Peter Rukavina

Pro tip: if you have a list of files that you need to retrieve from a webserver, you’re better off putting the list of URIs in a file, and then:

wget -i list-of-files.txt

than you are crafting a shell script like:

wget http://www.example.com/file-number-1.jpg
wget http://www.example.com/file-number-2.jpg
wget http://www.example.com/file-number-3.jpg

The former works much, much faster.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search