On Tue, April 5, 2005 12:30 pm, Volker Kuhlmann said: >> [EMAIL PROTECTED]:~$ wget 'http://www.greengecko.co.nz/*' >> Warning: wildcards not supported in HTTP. >> --11:33:17-- http://www.greengecko.co.nz/* > > The issue under discussion was whether wget accepts multiple URLs on its > command line in http. It does do so (mine does). Including the "*" > inside quotes is neither globbing nor anything else, but simply part of > the string making up the URL. What happens with asterisks as part of > URLs is left for another thread. Globbing: The archetypal use of wildcards is for matching against the files in a directory, and making a list of all the matches. (gnu.org). Just because you chose to further limit that definition to a local directory (and the act of globbing to the local shell?) doesn't make it a correct one.
> > >> >sh -c 'wget http://localhost/file{1,2,3}' >> >> I don't think the {...} construct counts as "globbing". > > It doesn't - I made that clear in my first post, and by explicitly > stating in the command above that bash was to be used. It simply > provides 3 http: URL arguments for wget. > > When downloading URLs, shell globbing isn't typically the sought-after > feature - afterall what you want to download doesn't often have anything > to do with what files are on your disk (unless you're mirroring). Well, usually it is concerned with globbing as in expanding the url specified, as you're ste^H^H^H making a copy of a website for educational or security purposes. That's why I said that wget globs ftp, not http, and provided an example that added the counterpoint to the previous wget ftp://.... examples in the thread, which do work. > > Nick(?) was looking for a short way to create a bunch of URLs differing > only in a numeral. Some replies confused that with shell globbing. I > can't think of any solution not involving a quick loop; bash's string > construction doesn't help as it would still require a comma-separated > list of all the numerals. He was, but then the thread took it's own life, and the examples used in the meantime were a) using globbing and b) using ftp, which expands the url as expected when used with wget, assuming a valid ftp account to use. > > Volker > > -- > Volker Kuhlmann is possibly list0570 with the domain in header > http://volker.dnsalias.net/ Please do not CC list postings to me. > Steve. -- Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what?
