> > > wget www.example.org/pub/download/file{01-09}
> >
> > How about wget www.example.org/pub/download/file0[1-9]
Several issues are involved at once here.
The [...] is a shell glob pattern and matches actual filenames on your
filesystem (it matches any of the characters inside the brackets, one
only).
Under tcsh, the {..,..} also are a shell glob pattern (alternates,
either one of). Under bash, some twat decided to make this a "string
producing special character sequence". Ie aaa{12,34}bbb simply produces
the strings aaa12bbb and aaa34bbb, without any relation to actual files
on your filesystem. There also is an alternates shell glob feature in
bash, but you need to specially flick it on, its syntax is nothing
you've seen before, and it's not compatible with anything else (that's
why it's off by default).
Using shell globs is really nifty, but some commands only take one
filename argument. wget is one of them. However, wget reads any number
of file args from stdin, so you can do
echo <all the URLS here> | wget -i-
Oops sorry, the URLs need to be newline delimited, which echo can't do.
Do this instead:
wget -i- <<EOF
Paste all your URLs here
EOF
or use a temp file.
Volker
--
Volker Kuhlmann is possibly list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.