Skip download if files exist in wget?

后端 未结 4 1856
[愿得一人]
[愿得一人] 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:29

    The answer I was looking for is at https://unix.stackexchange.com/a/9557/114862.

    Using the -c flag when the local file is of greater or equal size to the server version will avoid re-downloading.

提交回复
热议问题