I get an error when trying to use wget -O

Asked by Shirish Agarwal

Hi all,

 I tried doing shirish@Mugglewille:~/Documents$ wget "http://bits-3.topspin.net/secure/nin/nin_ghosts_I-IV_pdf.zip?ip=" -O
/usr/bin/wget: option requires an argument -- O
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

Now can somebody tell me where I've gone wrong?

AFA the man is concerned it says :-

 -O file
           The documents will not be written to the appropriate files, but all will be concatenated together
           and written to file. If - is used as file, documents will be printed to standard output, disabling
           link conversion. (Use ./- to print to a file literally named -.)

           Note that a combination with -k is only well-defined for downloading a single document.

Question information

English Edit question
Ubuntu wget Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :

After -O option a file name is required, please try

wget "http://bits-3.topspin.net/secure/nin/nin_ghosts_I-IV_pdf.zip?ip=" -O nin_ghosts_I-IV_pdf.zip

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Shirish Agarwal for more information if necessary.

To post a message you must log in.