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))
相關文章
相關標籤/搜索