On Wed, 10 Oct 2001, Daniel Stenberg wrote: > > For example in ftp://ftp.gnu.org/pub/gnu/wget there might be > > wget-1.5.tar.gz, wget-1.6.tar.gz, wget-1.7.tar.gz. I would like to "say" > > to wget: retrieve wget-someversion.tar.gz and wget fetches only the > > latest version (in this example: wget-1.7.tar.gz). And when > > wget-1.8.tar.gz is out it will retrieve only this one. > > This can't possibly be made "built-in".
Well, something like this could be done: Give the file name as a regular expression, then retrieve the latest file matching the regexp. (Can't offhand recall, though, whether file date is part of FTP spec or not). OR Same as above, but evaluate the digit parts of the regexp for all matches, pick largest value for loading. But both of these would require specific knowledge of how the file name is constructed. However, this is getting highly specialized and integrating it into the wget program is debatable, to say the least. Really: Well-maintained FTP sites should use a symlink to denote latest version. //Mikko
