好吧,
curl这只是一个简单的UNIX进程。您可以使许多
curl进程并行运行并将它们的输出发送到不同的文件。
curl可以使用URL的文件名部分来生成本地文件。只需使用
-O选项(
man curl有关详细信息)。
您可以使用以下内容
urls="http://example.com/?page1.html http://example.com?page2.html" # add more URLs herefor url in $urls; do # run the curl job in the background so we can start another job # and disable the progress bar (-s) echo "fetching $url" curl $url -O -s &donewait #wait for all background jobs to terminate



