[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with wget -O

On Thu, Jan 28, 2021 at 10:06:25AM -0600, David Wright wrote:
> Perhaps file a bug against that page. It appears that they were using
> -O merely to avoid overwriting http://master.zip with the second instance of
> wget. The manpage expressly advises against doing that: "Use of -O is
> not intended to mean simply "use the name file instead of the one in
> the URL". They should just use mv after each wget to place the zip
> files where they want them.

If -O is bad, then what are you supposed to use instead?

If you need to "use mv after each wget", how do you know the name of the
file that wget used?  And why can't you simply tell wget to use the
filename you *want* it to be written to?  Why would you need to do this
weird two-step process?

Reply to: