Hi,
How can I print the time in seconds(only). I have get the execution time of a script. Now I want the duration in seconds. How can I do it?
Thanks in advance
Hi,
How can I print the time in seconds(only). I have get the execution time of a script. Now I want the duration in seconds. How can I do it?
Thanks in advance
With SECONDS variable.
Ex:
i=0
while [ $i -le 10 ]
do
echo $SECONDS
sleep 1
(( i += 1 ))
done
Bye
Hi,
Is there any command to display time in seconds.
Thanks in advance
SECONDS is a builtin varaible , it�s value is the number of seconds the script has been running.
Bye
Hi,
Thank you. It works