Results 1 to 4 of 4
Why do so many open source places provide download URLs that
include a ? in the middle somewhere? wget doesn't play w/ them!
Is there an option for use with ...
- 09-12-2007 #1Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
wget and URLs with ?s
Why do so many open source places provide download URLs that
include a ? in the middle somewhere? wget doesn't play w/ them!
Is there an option for use with wget that I'm missing? Or should
I use something else other than wget for downloading files?
- 09-18-2007 #2Just Joined!
- Join Date
- Sep 2007
- Location
- Lafayette, IN
- Posts
- 83
Scott,
Have you tried putting quotes around the URL? That should make it happy. It's not so much a wget issue as a shell issue. Quoting the URL should cause the shell to pass it as a single string to wget.
BC
- 09-18-2007 #3
Right. The shell has a feature called shell patterns, that allow you to select multiple files with one string. You probably know about the other special character, '*'. '*' means "0 or more characters", while '?' means "1 character". So for instance, the following all match:
If you want to pass the literal strings, surround it with single quotes ('b?b').Code:hell* => hell, hello, hellothere b?b => bab, bob, bub, bbb, bcb
DISTRO=Arch
Registered Linux User #388732
- 09-19-2007 #4Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
I will give the quotes a whirl next time. Thanks for the heads-up.


Reply With Quote
