shell 数组、脚本执行时间

urls=(
	http://xxx/498.jpg
	http://xxx/103.jpg
	http://xxx/442.jpg
)


start=$(date +%s)

for i in ${urls[@]};do
 	wget -P /mnt/www/pic $i	
done

end=$(date +%s)

echo $((end - start))
相关文章
相关标签/搜索