[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to get wget --content-disposition to overwrite an exi
From: |
Tim Rühsen |
Subject: |
Re: Is it possible to get wget --content-disposition to overwrite an existing file. |
Date: |
Sun, 3 Mar 2024 19:35:01 +0100 |
User-agent: |
Mozilla Thunderbird |
On 2/25/24 03:40, Mark Sapiro wrote:
As far as I can tell, the only way to get wget to overwrite an existing
file is with the `-O` option, but I want to use `--content-disposition`
to write the output to the filename in the Content-Disposition: header.
This works, but if the filename already exists it writes to filename.1
instead. Is there a way to get it to overwrite the existing file?
Wget tries not to overwrite files.
But if you want to remove the old file, no matter what, why don't you
remove (or rename) that file before calling wget?
Regards, Tim
OpenPGP_signature.asc
Description: OpenPGP digital signature
- Re: Is it possible to get wget --content-disposition to overwrite an existing file.,
Tim Rühsen <=