PDA

View Full Version : [SOLVED] Checking a version number from ftp site part 2



Intrepid Ibex
August 3rd, 2010, 07:35 PM
*Smiles*. This 'issue' is the same as here:
http://ubuntuforums.org/showthread.php?p=9664432#post9664432
.. except the link being:

http://downloads.videolan.org/pub/videolan/testing/
;).

Bachstelze
August 3rd, 2010, 07:51 PM
You should be able to figure out something from what I've told you in the other thread, only the grep lines will need some adjusting.

Intrepid Ibex
August 3rd, 2010, 09:25 PM
Well, that's just it. The output needs to be [number].[number].[number]-pre/-rc/-test.[number]. The number parts are easy but the "-pre/-rc/-test" is not so.

Bachstelze
August 3rd, 2010, 09:39 PM
'[0-9]+\.[0-9]+\.[0-9]+-(test|pre|rc)[0-9]*'

Intrepid Ibex
August 4th, 2010, 10:47 AM
Ok, well that wasn't so bad.