Download all files of certain type using Wget

To download all zip file from a page use the following wget command:

wget -r -A “gz,txt” -w 1 -l 1 “http://mailman.nanog.org/pipermail/nanog/”

-r –> recursive
-A –> specify file suffixes to capture (in this case *.gz and *.txt files)
-w –> wait time before downloading (in sec)
-l –> depth (ie files only on the specified page)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s