On Tue, May 25, 2004 at 06:10:58PM +0300, Dan Uscatu wrote:
> > > time {
> > > com 1
> > > com 2
> > > com 3
> > > }
> 
> acum ramine de vazut cum tragem rezultatul intr-o variabila.
> 
> unde "scrie" time, pe ce device ? stdout si stderr nu e...

[EMAIL PROTECTED]:~$ time="$(TIMEFORMAT='%R'; (time sleep 1) 2>&1)"
[EMAIL PROTECTED]:~$ echo $time
1.007

-- 
George Cristian Birzan                  gcbirzan (at) wolfheart (dot) ro
Always acknowledge a fault. This will throw those in authority off their
guard and give you an opportunity to commit more.
                -- Mark Twain

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui