簡體   English   中英

WGET-下載網站時排除.ZIP文件

[英]WGET - Exclude .ZIP files, while downloading the website

我正在使用wget下載完整的網站。 我想知道如何修改此終端命令,以便它排除/跳過/不會刪除任何.zip文件。

wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/

您可以使用--reject參數

wget --reject *.zip ...

GNU Wget手冊( 2.11遞歸接受/拒絕選項

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. 

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM