wget a list of files

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

I am . I am a writer, printer, and curious person.

To learn more about me, read my /nowlook at my bio, 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 receive a daily digests of posts by email.

Search