[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] overwrite
From: |
taschenberggroup |
Subject: |
[Bug-wget] overwrite |
Date: |
Tue, 13 Jun 2017 09:40:23 +0200 |
Hi,
a common question online is how to properly force wget to make an
overwrite of an existing file name.
The existing options are quite confusing and I am under the impression
that even taking what works does not imply users understand what they
do.
The background of my question is
https://bugs.winehq.org/show_bug.cgi?id=43100
and your section in the manual
"When running Wget without ‘-N’, ‘-nc’, ‘-r’, or ‘-p’, downloading the same file
in the same directory will result in the original copy of file being preserved
and the second copy being named ‘file.1’. If that file is downloaded yet again,
the third copy will be named ‘file.2’, and so on."
If I want to disable that default behaviour what option do I take? I go
with -nc but I have no clue why I have to take n and c, and online
recommendations vary from recommending n, c, and nc.
I am looking for something intuitive like:
wget --overwrite[1] https://dl.winehq.org/wine-builds/Release.key
Best,
Ansgar
References
1. https://dl.winehq.org/wine-builds/Release.key
- [Bug-wget] overwrite,
taschenberggroup <=