curl-users
Re: URL "Wild Card"?
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 16 Oct 2007 08:29:34 -0700
Date: Tue, 16 Oct 2007 08:29:34 -0700
On Tue, Oct 16, 2007 at 07:47:05AM -0700, KNS Information Services wrote:
> Is there a way to get only files in a directory that include given characters
> but exclude others? For example, can one request something like this:
>
> http://www.foo.com/directory1/*xxx.html
>
> so that only files ending in xxx.html would be transferred?
curl doesn't support that directly--it's file globbing is pretty limited.
But you can easily do that using a for loop, find, or xargs, as discussed
here a few days ago.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-10-16