Consider this working example:

# wget2 --no-clobber "running-gnu-parallel-while-files-exist" -O "/root/stackoverflow.html" --base "https://stackoverflow.com/questions/19571996/";

[0] Downloading 'https://stackoverflow.com/questions/19571996/running-gnu-parallel-while-files-exist' ...
File '/root/stackoverflow.html' already there; not retrieving.
HTTP response 200 OK [https://stackoverflow.com/questions/19571996/running-gnu-parallel-while-files-exist]

if /root/stackoverflow.html already exists, it gets truncated.

It doesn't happen with wget 1.

My wget version is 2.0.0:

# wget2 --version
GNU Wget2 2.0.0 - multithreaded metalink/file/website downloader

+digest +https +ssl/gnutls +ipv6 +iri +large-file +nls -ntlm -opie -psl -hsts
+iconv +idn +zlib -lzma -brotlidec -zstd -bzip2 -lzip -http2 -gpgme


Reply via email to