download file from web source, selectively

Posted by KILL3RTACO on Ask Ubuntu See other posts from Ask Ubuntu or by KILL3RTACO
Published on 2012-11-10T21:21:33Z Indexed on 2012/11/12 11:21 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

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

© Ask Ubuntu or respective owner

Related posts about 12.10

Related posts about bash