Skip download if files exist in wget?

nais inpoh gan picture nais inpoh gan · Feb 9, 2011 · Viewed 138.6k times · Source

This is simplest example running wget:

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

but how to make wget skip download if pic.pngis already available?

Answer

plundra picture plundra · Feb 9, 2011

Try the following parameter:

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

Sample usage:

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