How to use regular expressions in wget for rejecting files?

前端 未结 2 1390
渐次进展
渐次进展 2021-02-02 14:11

I am trying to download the contents of a website using wget tool. I used -R option to reject some file types. but there are some other files which I don\'t want to download. Th

2条回答
  •  别那么骄傲
    2021-02-02 14:44

    You can not specify a regular expression in the wget -R key, but you can specify a template (like file template in a shell).

    The answer looks like:

    $ wget -R 'newsbrief-*' ...
    

    You can also use ? and symbol classes [].

    For more information see info wget.

提交回复
热议问题