Computing.Net > Forums > Unix > awk elasped time help

awk elasped time help

Reply to Message Icon

Original Message
Name: xmikex
Date: March 13, 2007 at 13:29:53 Pacific
Subject: awk elasped time help
OS: solaris
CPU/Ram: unknown
Model/Manufacturer: unknown
Comment:

Given data separated by tabs, fifth field is elapsed time given as hh:mm
Script computes average elapsed time.

using a template that
has one action statement in body
has one calculation and one print statement for the END pattern
uses one user-defined variable called t
uses + * / % operators, int and substr functions

i know you have to add the 5th field up in time stored in a variable t, and then divide by total lines, but i really need some help with this!


Report Offensive Message For Removal


Response Number 1
Name: nails
Date: March 13, 2007 at 21:38:02 Pacific
Subject: awk elasped time help
Reply: (edit)

An example of the data file would help.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: awk elasped time help

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software