The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-22-2009
kodak kodak is offline
Registered User
  
 

Join Date: Jun 2003
Posts: 51
bash does not do floating point math by itself. Since you have to convert the output of time into something you can do math on, this whole thing scream "use perl" to me.

As a hint, though, look at your man page for time. On Linux you can do "time -p" and it will output in a decimal value instead of tacking on the minute and second units.