If anyone has heard of Bukkit, you know that their files are usually of three types: Development, Beta, and Realease. Click (here) for examples. I need a script that:
- Loops through the directory
- Gets the latest Stable version (probably just as simple as looking at the version number as they have a simple naming convention, each stable version is succeeded by -Rx.0, while developmental and beta versions are succeeded by -Rx.x)
After that I know I'll need to use
wget to download the file.
Note: If your just going to post code, at least tell me what it does so I can use it later if I need to