【发布时间】:2014-01-24 11:20:11
【问题描述】:
我正在使用 wget 下载一个完整的网站。我想知道如何修改此终端命令,使其排除/跳过/不下载任何 .zip 文件。
wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/
【问题讨论】:
我正在使用 wget 下载一个完整的网站。我想知道如何修改此终端命令,使其排除/跳过/不下载任何 .zip 文件。
wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/
【问题讨论】:
【讨论】:
wget -m -k -K -E -p --convert-links -e robots=off -R zip http://www.example.com/
从 GNU 的 Wget 手册页中获取:
‘-R rejlist --reject rejlist’
Specify comma-separated lists of file name suffixes or patterns to accept or reject (see Types of Files). Note that if any of the wildcard characters, ‘*’, ‘?’, ‘[’ or ‘]’, appear in an element of acclist or rejlist, it will be treated as a pattern, rather than a suffix.
希望这会有所帮助。
【讨论】:
wget -m -k -K -E -p --convert-links -e robots=off -R *.zip http://www.example.com/