Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 cURL(第一次使用它)从命令行从 ftps 站点下载文件。这是我需要做的:
从 ftps 站点下载与某个文件名匹配的多个文件,例如Filename_csv_1998.zip,我需要下载所有具有 name 的文件Filename_csv_[YEAR].zip。我可以在 curl 中使用通配符来获取这些文件吗
Filename_csv_1998.zip
Filename_csv_[YEAR].zip
我需要将这些文件下载到单独的 zip 文件中的目录
如果我不得不使用脚本,我想使用 curl 命令来执行此操作。
这可能吗。
谢谢
当然,如果您想获得一系列年份,例如,您可以执行类似的操作:
cd correct_directory curl --ftp-ssl ftp://example.com/dir/File_[1990-2011].zip -o file_#1.zip