I needed a timer which will start at the very beginning of the script and stops at the end.Can anyone help me with that?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
If you want the duration in seconds, at the top use
and at the end
|
|||
|
|
|
You could use Linux's built-in
To time the
|
||||
|
|
timecommand ( time ./script.sh ), to printout current time usedatecommand and so on. – rush Nov 4 '12 at 21:06