> [EMAIL PROTECTED] ~]$ echo 1:1:0.2 | (
> IFS=':.' 
> read a b c d
> echo $(((3600*$a)+(60$*b)+$c)).$d
> )    
euuuu moins lourd et qui marche pareil
toto=1:1:0.2
res=`(IFS=':.' ; set -- $toto; echo 600*$1)+(60*$2)+$3)).$4)`
echo $res

comme "echo", "set", "`" et "=" sont buit-in, cela consomme quazi 0 ressources
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Répondre à