6 ms·
According to the manpage, the filename depends only on the supplied URL: Write output to a local file named like the remote file we get. (Only the file part
by bkirwi 12y ago
According to the manpage, the filename depends only on the supplied URL:
Write output to a local file named like the remote file we get. (Only the file part of the remote file is used, the path is cut off.)
The remote file name to use for saving is extracted from the given URL, nothing else.
wget is a hugely useful tool for making local copies of websites and similar things -- the no-clobber rule is useful there, and the built-in crawling and resource fetching is fantastic. OTOH, for most things, I actually like curl's 'dumb' behaviour; it seems to match up better with the rest of the UNIX ecosystem.