wget -i fileIf you specify `-' as file name, the URLs will be read from stdin.
wget -r -t1 http://www.gnu.ai.mit.edu/ -o gnulog
wget -r -l1 http://www.yahoo.com/
wget -S http://www.lycos.com/
wget -s http://www.lycos.com/ more index.html
wget -P/tmp -l2 ftp://prep.ai.mit.edu/
wget -r -l1 --no-parent -A.gif http://host/dir/It is a bit of a kludge, but it works perfectly. `-r -l1' means to retrieve recursively (See section 3.3 Advanced Options), with maximum depth of 1. `--no-parent' means that references to the parent directory are ignored (See section 6.5 No Parent), and -A.gif means to download only the GIF files. `-A "*.gif"' would have worked too.
wget -nc -r http://www.gnu.ai.mit.edu/
wget -NS http://www.gnu.ai.mit.edu/A simple
ls -l
shows that the time stamp on the local file equals
the state of the Last-Modified
header, as returned by the server.
`-NS' is equivalent to `-N -S' (See section 3.1 Option Syntax).
wget -N http://www.gnu.ai.mit.edu/Wget will ask server for the last-modified date. If the local file is newer, the remote file will not be refetched. However, if the remote file is more recent, Wget will procede fetching it normally.
wget ftp://ftp.ifi.uio.no/pub/emacs/gnus/*
ls
will show that the timestamps are set according to the state
on the remote server. Reissuing the command with `-N' will make
Wget refetch only the files that have been modified.
wget ftp://hniksic:mypassword@jagor.srce.hr/.emacs
wget --dot-style=binary ftp://prep.ai.mit.edu/pub/gnu/READMEYou can experiment with other styles, like:
wget --dot-style=mega ftp://ftp.xemacs.org/pub/xemacs/xemacs-19.14.tar.gz wget --dot-style=micro http://fly.cc.fer.hr/To make these settings permanent, put them in your .wgetrc, as described before (See section 7.4 Sample Wgetrc).
Go to the first, previous, next, last section, table of contents.