Created
February 19, 2012 00:48
-
-
Save oosugi20/1861477 to your computer and use it in GitHub Desktop.
URLリストからファイル(画像やCSSも含めて)をダウンロードする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in "http://www.example.com/index.html" "http://www.example.com/hoge/hoge.html" | |
do | |
wget -p -nc -nv $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget : 指定したファイルをダウンロードする
-p : 画像やCSSなど表示するのに必要なファイルもダウンロードする
-nc : ファイルがローカルに存在する場合はダウンロードしない
-nv : 出力されるログを短くする