Re: How to change the name of the output file
On Wed, 05 Dec 2007 21:41:14 -0800 Micah Cowan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mauro Tortonesi wrote: On Tuesday 20 November 2007 20:38:13 Micah Cowan wrote: Be advised, though, that -O doesn't simply mean make the name of the downloaded result `filename'; it means act as if you're redirecting output to a file named `filename'. In particular, this means that such things as timestamping, and multiple URLs, may not work as you expect. micah, i believe this text is a good candidate for inclusion in the man page. Heh, I turned your suggestion into a bug... and then, now that I've had a chance to take a closer look, I've discovered I already added some clarifying text to the -O option's description. How's this look? http://hg.addictivecode.org/wget/1.11/rev/5e5eae3f8d9f Use of `-O' is _not_ intended to mean simply use the name FILE instead of the one in the URL; rather, it is analogous to shell redirection: `wget -O file http://foo' is intended to work like`wget -O - http://foo file'; `file' will be truncated immediately, and _all_ downloaded content will be written there. Note that a combination with `-k' is only permitted when downloading a single document, and combination with any of `-r',`-p', or `-N' is not allowed. looks perfect to me. hopefully, now we'll have less complaints from users who try -O for multiple downloads ;-) -- Mauro Tortonesi [EMAIL PROTECTED]
Re: How to change the name of the output file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mauro Tortonesi wrote: On Tuesday 20 November 2007 20:38:13 Micah Cowan wrote: Be advised, though, that -O doesn't simply mean make the name of the downloaded result `filename'; it means act as if you're redirecting output to a file named `filename'. In particular, this means that such things as timestamping, and multiple URLs, may not work as you expect. micah, i believe this text is a good candidate for inclusion in the man page. Heh, I turned your suggestion into a bug... and then, now that I've had a chance to take a closer look, I've discovered I already added some clarifying text to the -O option's description. How's this look? http://hg.addictivecode.org/wget/1.11/rev/5e5eae3f8d9f Use of `-O' is _not_ intended to mean simply use the name FILE instead of the one in the URL; rather, it is analogous to shell redirection: `wget -O file http://foo' is intended to work like`wget -O - http://foo file'; `file' will be truncated immediately, and _all_ downloaded content will be written there. Note that a combination with `-k' is only permitted when downloading a single document, and combination with any of `-r',`-p', or `-N' is not allowed. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHV4t67M8hyUobTrERAmZNAJ9wEv1kY3Kg9KFcsBKSs86/7Qg9hACgjPwc DqNUqvbs5k/hg9U959dfmbs= =bnK8 -END PGP SIGNATURE-
Re: How to change the name of the output file
On Tuesday 20 November 2007 20:38:13 Micah Cowan wrote: Be advised, though, that -O doesn't simply mean make the name of the downloaded result `filename'; it means act as if you're redirecting output to a file named `filename'. In particular, this means that such things as timestamping, and multiple URLs, may not work as you expect. micah, i believe this text is a good candidate for inclusion in the man page. -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi http://www.tortonesi.com University of Ferrara - Dept. of Eng. http://www.ing.unife.it GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget Deep Space 6 - IPv6 for Linux http://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it
Re: How to change the name of the output file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andra Isan wrote: Hi, When I download a file, I would like to change the output file, usually the name is long and I would like to change that name, How can I do so? Andra Depending on your needs, -O filename might fit the bill. Be advised, though, that -O doesn't simply mean make the name of the downloaded result `filename'; it means act as if you're redirecting output to a file named `filename'. In particular, this means that such things as timestamping, and multiple URLs, may not work as you expect. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHQzel7M8hyUobTrERCE6vAJ9bMNqSgxviNSVs8LEoOsPuQPCT2ACghnan 9FGF94GenJIfQtGHXvKgfYw= =jQE6 -END PGP SIGNATURE-
How to change the name of the output file
Hi, When I download a file, I would like to change the output file, usually the name is long and I would like to change that name, How can I do so? Andra - Get easy, one-click access to your favorites. Make Yahoo! your homepage.