- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to download the multiple files using wget
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 03:32 AM
12-01-2014 03:32 AM
How to download the multiple files using wget
Hi,
Is there any way we can download multiple files using wget for e.g. when i try to download wget http://url/test*
Warning: wildcards not supported in HTTP.
Basically we want to download the files starting with test-nnnnn (where nnnnn - can we any numbers) or *.XLS
Thanks,
Narendra
- Tags:
- wget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 04:50 AM
12-01-2014 04:50 AM
Re: How to download the multiple files using wget
> Is there any way we can download multiple files using wget [...]
It depends. If you could use FTP instead of HTTP, then wildcards
could be used. If the Web server will return a list of files for a URL
like "http://url/", then you could do things with HTTP, too. A Wget
option like --accept-regex=REGEX could be useful, for example. Or, you
could first fetch the file list, then extract the names you want from
it, and finally use Wget to fetch the URLs which will get those named
files. (-i/--input-file=FILE could be useful here.)
An FTP server naturally provides directory listings. This allows
Wget to get a directory listing, scan it for wildcard matches, and fetch
the resulting files.
An HTTP server may or may not provide a directory listing, depending
on how the server is configured. Generally, with HTML, Wget can follow
HTML _links_, but that works only if the server provides a HTML document
which contains suitable links. Between my weak psychic powers and your
description, I don't how helpful your HTTP/FTP/whatever server will be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2014 06:18 AM
12-08-2014 06:18 AM
Re: How to download the multiple files using wget
If you have the right filenames (or they can be generated),
you could use a bash script which could download it for you.