Intrepid Ibex
December 14th, 2010, 09:44 PM
So my little 'task' is to grep/cat/sed/whatever the revision number of VirtualBox from the Download Index file (http://download.virtualbox.org/virtualbox/4.0.0_BETA3/) in order to automate my 'auto-updating' VirtualBox 'packaging script'.
I've gotten to the part where I've wget'd the index file, grepped it to only show one line and now I (somehow) need to get the revision number (68940) out of that line. Of course the version and revision numbers ('4.0.0BETA3' and '68940') change every time a new version comes up so I'd need something robust for that matter.
So here's the line:
<A HREF="Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extpack" NAME="Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extpack"><IMG SRC="/mc-icons/unknown.gif" ALT="[ ]" BORDER=0> Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extp+</A> 14-Dec-2010 11:07 3M
Thanks for your time,
'Intrepid Ibex' (I hate my nickname but that's all I got)
I've gotten to the part where I've wget'd the index file, grepped it to only show one line and now I (somehow) need to get the revision number (68940) out of that line. Of course the version and revision numbers ('4.0.0BETA3' and '68940') change every time a new version comes up so I'd need something robust for that matter.
So here's the line:
<A HREF="Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extpack" NAME="Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extpack"><IMG SRC="/mc-icons/unknown.gif" ALT="[ ]" BORDER=0> Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA3-68940.vbox-extp+</A> 14-Dec-2010 11:07 3M
Thanks for your time,
'Intrepid Ibex' (I hate my nickname but that's all I got)