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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

awk elasped time help

Reply to Message Icon

Name: xmikex
Date: March 13, 2007 at 13:29:53 Pacific
OS: solaris
CPU/Ram: unknown
Product: 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!



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: March 13, 2007 at 21:38:02 Pacific
Reply:

An example of the data file would help.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: awk elasped time help

awk script - need help www.computing.net/answers/unix/awk-script-need-help/7986.html

Timestamps of Files ??? www.computing.net/answers/unix/timestamps-of-files-/3573.html

need help on SED script www.computing.net/answers/unix/need-help-on-sed-script/7487.html