[Linux-Biella] ancora script

Claudio M. linux@bilug.linux.it
Mon, 18 Feb 2002 11:21:41 +0100


On Mon, 18 Feb 2002 11:11:12 +0100
CIARROCCHI Paolo <Paolo.CIARROCCHI@omnitelvodafone.it> wrote:

> Questo e' sicuramente vero, ma non so come farlo...
Puoi fare una cosa di questo tipo:
 
>         if (/\s([\d:.]+)elapsed/) {
>                 $elapsed = $1;
>                 print "$elapsed\n";
>         }

lo sostituisci con

         if (/\s(\d+):([\d.]+)elapsed/) {
                 $elapsed = $1*60+$2;
                 print "$elapsed\n";
         }

Bye

-- 
Per cortesia niente allegati word, solo in formato ASCII (.txt) 
oppure Rich Text Format (.rtf)
--
Linux Registered User     #151147  |  Home Page    http://www.bilug.linux.it
Linux registered Machine  #66331   |  ICQ Number   53293810
GPG key http://www.bilug.linux.it/~cmaffio/key-bilug.asc