[LUGOS] script

Metod Kozelj metod.kozelj at lugos.si
Thu Jul 3 15:07:55 CEST 2003


Howdy!

ICE Administrator wrote:

>Kako bi dobil verzijo (3.70) v variablo?
>
>npr.
>#<ime_programa> --version
>product version	: 3.70
>

Recimo takole:

VERS=$( <ime_programa> --version | grep -i "product version" | cut -d: 
-f2 | sed -e 's/\.//g' -e 's/ //g' )

...

in potem narediš

wget -N http://www.sophos.com/downloads/ide/${VERS}_ides.zip

:)

-- 
Peace!
  Mkx

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'





More information about the lugos-list mailing list