curl-users
Re: Curl - multiple files
Date: Wed, 06 Feb 2008 14:28:46 +0100
Yedidi, Santhosh wrote:
> I have a website. The following is the picture location I wante to download
> http://www.vrindavandarshan.com/yr2007/jan07/1jan2007_gncf.jpg
>
> In jan07 folder there are many jpg files.
> Using curl how can I download all the jpgs in the folder jan07
> I treid curl http://www.vrindavandarshan.com/yr2007/jan07/*.jpg
> But is does not do anything only some html code is output
Of course, the "*" cannot be expanded, in general. If you get the url
http://www.vrindavandarshan.com/yr2007/jan07/
Apache builds a directory listing for you. You can extract the file names
from there using a text editor or sed (a non interactive text editor).
> If I run curl http://www.vrindavandarshan.com/yr2007/jan07/1jan2007_gncf.jpg
> the jpg file is not stored.
See curl's options "-O" and "-o fname".
Received on 2008-02-06