Difference between revisions of "Wget"

From Christoph's Personal Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
{{lowercase|wget}}
 
{{lowercase|wget}}
 
'''wget''' - The non-interactive network downloader.
 
'''wget''' - The non-interactive network downloader.
 +
 +
== Download multiple files ==
 +
* Create variable that holds all urls and then using 'BASH foo loop' to download all files:
 +
% URLS="<nowiki>http://www.example.com/foo.tar.gz ftp://ftp.example.org/pub/bar.tar.gz</nowiki>"
 +
* Use for loop as follows:
 +
% for u in $URLS; do wget $u; done
 +
 +
* You can also put a list of the URLs in a file and download using the <tt>-i</tt> option:
 +
% wget -i download.txt
 +
 +
== See also ==
 +
* [[Axel (command)|axel]]
 +
* [[Prozilla (command)|prozilla]]
  
 
== External links ==
 
== External links ==
 
* [http://www.gnu.org/software/wget/manual/ GNU Wget Manual] &mdash; last update: 15-Jun-2005
 
* [http://www.gnu.org/software/wget/manual/ GNU Wget Manual] &mdash; last update: 15-Jun-2005
 
* [http://www.lifehacker.com/software/top/geek-to-live--mastering-wget-161202.php Geek to Live: Mastering Wget]
 
* [http://www.lifehacker.com/software/top/geek-to-live--mastering-wget-161202.php Geek to Live: Mastering Wget]
 +
* [http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/06/linux-wget-your-ultimate-command-line.php wget: your ultimate command line downloader]
  
 
{{stub}}
 
{{stub}}
 
[[Category:Linux Command Line Tools]]
 
[[Category:Linux Command Line Tools]]

Revision as of 00:37, 5 September 2006

The correct title of this article is wget. The initial letter is capitalized due to technical restrictions.

wget - The non-interactive network downloader.

Download multiple files

  • Create variable that holds all urls and then using 'BASH foo loop' to download all files:
% URLS="http://www.example.com/foo.tar.gz ftp://ftp.example.org/pub/bar.tar.gz"
  • Use for loop as follows:
% for u in $URLS; do wget $u; done
  • You can also put a list of the URLs in a file and download using the -i option:
% wget -i download.txt

See also

External links

This article is curently a "stub". This means it is an incomplete article needing further elaboration.

I always welcome suggestions, comments, and criticism. If you have something to contribute to this site, please follow this link: Contributing Information. Thank you!