Sponsored Content
Top Forums Shell Programming and Scripting AWK novice - calculate the average Post 302469284 by alex2005 on Friday 5th of November 2010 10:26:01 AM
Old 11-05-2010
Thank you all for all the info's sent.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

calculate average of column 2

Hi I have fakebook.csv as following: F1(current date) F2(popularity) F3(name of book) F4(release date of book) 2006-06-21,6860,"Harry Potter",2006-12-31 2006-06-22,,"Harry Potter",2006-12-31 2006-06-23,7120,"Harry Potter",2006-12-31 2006-06-24,,"Harry Potter",2006-12-31... (0 Replies)
Discussion started by: onthetopo
0 Replies

2. UNIX for Dummies Questions & Answers

Use awk to calculate average of column 3

Suppose I have 500 files in a directory and I need to Use awk to calculate average of column 3 for each of the file, how would I do that? (6 Replies)
Discussion started by: grossgermany
6 Replies

3. Programming

calculate average

I have a file which is 2 3 4 5 6 6 so i am writing program in C to calculate mean.. #include<stdio.h> #include<string.h> #include <math.h> double CALL mean(int n , double x) main (int argc, char **argv) { char Buf,SEQ; int i; double result = 0; FILE *fp; (3 Replies)
Discussion started by: cdfd123
3 Replies

4. Shell Programming and Scripting

calculate the average of time series data using AWK

Hi, I have two time series data (below) merged into a file. t1 and t2 are in unit of second I want to calculate the average of V1 every second and count how many times "1" in V2 is occur within a second Input File: t1 V1 t2 V2 10.000000... (5 Replies)
Discussion started by: nica
5 Replies

5. Shell Programming and Scripting

Calculate average time using a script

Hello, I'm hoping to get some help on calculating an average time from a list of times (hour:minute:second). Here's what my list looks like right now, it will grow (I can get the full date or change the formatting of this as well): 07:55:31 09:42:00 08:09:02 09:15:23 09:27:45 09:49:26... (4 Replies)
Discussion started by: jaredhanks
4 Replies

6. Shell Programming and Scripting

Calculate Average AWK

I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall: Example file: File 1 001 0.046 0.667267 001 0.047 0.672028 001 0.048 0.656025 001 0.049 ... (2 Replies)
Discussion started by: AriasFco
2 Replies

7. Shell Programming and Scripting

Calculate average for repeated ID within a data

I have an awk script that gives the following output: Average end-to-end transmission delay 2.7 to 5.7 is 0.635392 seconds Average end-to-end transmission delay 2.1 to 5.1 is 0.66272 seconds Average end-to-end transmission delay 2.1 to 5.1 is 0.691712 seconds Average end-to-end transmission... (4 Replies)
Discussion started by: ENG_MOHD
4 Replies

8. Shell Programming and Scripting

Calculate Average time of one column

Hello dears, I have a log file with records like below and want to get a average of one column based on the search of one specific keyword. 2015-02-07 08:15:28 10.102.51.100 10.112.55.101 "kevin.c" POST ... (2 Replies)
Discussion started by: Newman
2 Replies

9. Shell Programming and Scripting

Calculate average, azimut and distance

Gents, Please i will to get the distance and azimut from 2 coordinates: Usig excel formula i get the correct values, but i will like to do it using awk. Example A 35089.0 50345.016 9 75 1 2101774 77 70 79 483911.6 2380106.9 137.4 1 1 6 1 A 35089.0 50345.01620 75... (8 Replies)
Discussion started by: jiam912
8 Replies

10. Shell Programming and Scripting

Calculate the average per block.

My old school way is a one liner. And will search for average from SAR, to get the data receive rate. But, I dont think it is practical or accurate,. Because it calculates to off peak hours. I am planning to change it. My cron runs every 30 mins. When my cron runs, and my time is 14:47pm,, it will... (1 Reply)
Discussion started by: invinzin21
1 Replies
DateTime::Locale::hi_IN(3)				User Contributed Perl Documentation				DateTime::Locale::hi_IN(3)

NAME
DateTime::Locale::hi_IN SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'hi_IN' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Hindi India. DATA
This locale inherits from the DateTime::Locale::hi locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (format) XXX XXXX XXX XXXX XXXXX XXX XXX Narrow (format) XX XX XX XX XX X X Wide (stand-alone) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XXX XXXX XXX XXXX XXXXX XXX XXX Narrow (stand-alone) XX XX XX XX XX X X Months Wide (format) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (format) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Narrow (format) X XX XX X X XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (stand-alone) XXXXX XXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXX XXXXXXX XXXXXX XXXXXXX Narrow (stand-alone) X XX XX X X XX XX X XX X X XX Quarters Wide (format) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Abbreviated (format) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Narrow (format) 1 2 3 4 Wide (stand-alone) XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXX XXXXXX XXXXX Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated XXXXXXXX XX Narrow XXXXXXXX XX Date Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXX -10 Long 2008-02-05T18:30:30 = 5 XXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXX -10 Medium 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 Short 2008-02-05T18:30:30 = 5-2-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-9--10 Default 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Short 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Default 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXX 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXX 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXX -10 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 5 XXXXX 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = 22 XXXXXXX 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = 15 XXXXXXX -10 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 05-02-2008 6:30:30 PM 1995-12-22T09:05:02 = 22-12-1995 9:05:02 AM -0010-09-15T04:44:23 = 15-09--010 4:44:23 AM Short 2008-02-05T18:30:30 = 5-2-08 6:30 PM 1995-12-22T09:05:02 = 22-12-95 9:05 AM -0010-09-15T04:44:23 = 15-9--10 4:44 AM Default 2008-02-05T18:30:30 = 05-02-2008 6:30:30 PM 1995-12-22T09:05:02 = 22-12-1995 9:05:02 AM -0010-09-15T04:44:23 = 15-09--010 4:44:23 AM Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XXXX 1995-12-22T09:05:02 = 22 XXXXX -0010-09-15T04:44:23 = 15 XXX GGGGyMMMMEEEEdd (EEEE,dd MMMM GGGGy) 2008-02-05T18:30:30 = XXXXXXX,05 XXXXX CE2008 1995-12-22T09:05:02 = XXXXXXXX,22 XXXXXXX CE1995 -0010-09-15T04:44:23 = XXXXXX,15 XXXXXXX BCE-10 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hhmm (hh:mm a) 2008-02-05T18:30:30 = 06:30 PM 1995-12-22T09:05:02 = 09:05 AM -0010-09-15T04:44:23 = 04:44 AM HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 hhmmss (hh:mm:ss a) 2008-02-05T18:30:30 = 06:30:30 PM 1995-12-22T09:05:02 = 09:05:02 AM -0010-09-15T04:44:23 = 04:44:23 AM Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, d/M) 2008-02-05T18:30:30 = XXXX, 5/2 1995-12-22T09:05:02 = XXXXX, 22/12 -0010-09-15T04:44:23 = XXX, 15/9 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = XXXXX 1995-12-22T09:05:02 = XXXXXXX -0010-09-15T04:44:23 = XXXXXXX MMMd (d MMM) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMdd (dd MMM) 2008-02-05T18:30:30 = 05 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMEd (E, d MMM) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX -0010-09-15T04:44:23 = XXX, 15 XXXXXXX MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXX MMMMEd (E, d MMMM) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX -0010-09-15T04:44:23 = XXX, 15 XXXXXXX ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M-y) 2008-02-05T18:30:30 = 2-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 9--10 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XXXX, 2008-2-5 1995-12-22T09:05:02 = XXXXX, 1995-12-22 -0010-09-15T04:44:23 = XXX, -10-9-15 yMMM (MMM y) 2008-02-05T18:30:30 = XXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXX -10 yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 2008 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX 1995 -0010-09-15T04:44:23 = XXX, 15 XXXXXXX -10 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXX 1995-12-22T09:05:02 = 1995 XXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 XXXXX XXXXX 1995-12-22T09:05:02 = 1995 XXXXXX XXXXX -0010-09-15T04:44:23 = -10 XXXXX XXXXX yyMMdd (dd-MM-yy) 2008-02-05T18:30:30 = 05-02-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-09--10 yyMMMd (d MMM, yy) 2008-02-05T18:30:30 = 5 XXXXX, 08 1995-12-22T09:05:02 = 22 XXXXXXX, 95 -0010-09-15T04:44:23 = 15 XXXXXXX, -10 yyMMMEEEd (EEE, d MMM yy) 2008-02-05T18:30:30 = XXXX, 5 XXXXX 08 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXX 95 -0010-09-15T04:44:23 = XXX, 15 XXXXXXX -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::hi_IN(3)
All times are GMT -4. The time now is 11:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy