开发者

cURL download multiple files from FTPS site

I am using cURL (first time using this) to download files from ftps site from the command line. This is what i need to do:

  1. Download multiple files from the ftps site that match a certain file name e.g. Filename_csv_1998.zip so I need to download all files with name Filename_csv_[YEAR].zip. Can I do wildcard in curl to pick up these files

  2. I need to download these files to a directory in separate zip files

  3. 开发者_JAVA技巧

I would like to do this using curl commands if i have to then maybe use a script.

Is this possible.

Thanks


Sure, if you want to get a range of years you can for example do something similar to this:

cd correct_directory

curl --ftp-ssl ftp://example.com/dir/File_[1990-2011].zip -o file_#1.zip
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜