I'm trying this:
TIMEFORMAT=%R;
foo=$(time wget http://www.mysite.com)
echo $foo
and when I execute I see the number I want in the output but not in variable foo (echo $foo print nothing).
Why is that?
I'm trying this:
TIMEFORMAT=%R;
foo=$(time wget http://www.mysite.com)
echo $foo
and when I execute I see the number I want in the output but not in variable foo (echo $foo print nothing).
Why is that?