> >> How about wget www.example.org/pub/download/file0[1-9]

...

> the [0-9] is expanded by the shell before delivery to the program (wget).
> However, it isn't a command to add 0...9 to the end of the string, it is a
> pattern matching thing. wget will only pattern match remotely (glob) using
> ftp, not http, so it won't work.

Some interesting explanations.  I'm sure I've used wget
ftp://example.com/file* and it worked.  In fact I just tested it and
it worked (on WinXP with wget.exe from unxutils).

I did the same test with wget ftp://example.com/file[0-9] and it also
worked.  The files I was downloading were log files so there were only
0-6.  No errors about 7-9 not existing.

Maybe it is a difference between cmd.exe and bash?

-- 
Later

David Kirk

Reply via email to