【发布时间】:2016-04-02 22:14:16
【问题描述】:
我有这个小脚本可以从文件中的给定列表下载图像。
FILE=./img-url.txt
while read line; do
url=$line
wget -N -P /images/ $url
wget -N -P /images/ ${url%.jpg}_{001..005}.jpg
done < $FILE
问题是,它运行时间过长(文件中 > 5000 行)。有什么办法可以加快速度吗?就像将源 txt 拆分为单独的文件并同时运行多个 wget 实例。
【问题讨论】: