cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to get fixed prefix files using curl command line

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 11 Nov 2010 23:55:39 -0800

On Fri, Nov 12, 2010 at 11:41:07AM +0800, Tony Cheng wrote:
> How can I use curl command line to get files which contain fixed
> prefix name? For example,the source path contains many files which all
> have prefix 'I001' in their filenames and have unknown postfix. How to
> get all these files by using curl command line?

What protocol? You can use {curly} and [square] brackets to specify
part sets, if they're regular. You can always call curl in a shell
for or xargs loop. There is support for ftp wild card downloads in libcurl,
but I don't think it's accessible from the command-line.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-12