Skip download if files exist in wget?

后端 未结 4 1895
[愿得一人]
[愿得一人] 2021-01-29 18:39

This is simplest example running wget:

wget http://www.example.com/images/misc/pic.png

but how to make wget skip download if pic.png

4条回答
  •  一整个雨季
    2021-01-29 19:30

    Try the following parameter:

    -nc, --no-clobber: skip downloads that would download to existing files.

    Sample usage:

    wget -nc http://example.com/pic.png
    

提交回复
热议问题