[英]WGET - Exclude .ZIP files, while downloading the website
I'm downloading a complete website using wget. 我正在使用wget下载完整的网站。 I would like to know that how can I modify this terminal command so that it excludes / skips / doesn't downlaod any .zip file. 我想知道如何修改此终端命令,以便它排除/跳过/不会删除任何.zip文件。
wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/
You can use --reject
parameter 您可以使用--reject
参数
wget --reject *.zip ...
GNU Wget Manual ( 2.11 Recursive Accept/Reject Options ) GNU Wget手册( 2.11递归接受/拒绝选项 )
wget -m -k -K -E -p --convert-links -e robots=off -R zip http://www.example.com/
Took this from GNU's manpage of Wget: 从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.
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.