Count the number of events per hour.

From: Alistair McKeown (Alistair.Mckeown@jacobsrimell.com)
Date: Fri Feb 04 2005 - 07:40:31 EST


Hi gurus,

        I was wondering if the is a couple of commands or a simple script
that could count the number of events per hour from a text file I have which
just contains the times themselves. Some how I need to see how many events
are happening per hour.

Heres the start of the txt file for example (which carries on for 24hrs) :

Trouble is if a wc -l count for 07, in the hour column, 07 could be in the
min or second column as well.

07:46:37
07:49:20
07:49:41
07:49:48
07:50:09
07:50:34
07:51:31
07:54:14
07:54:24
07:55:02
07:55:54
07:56:14
07:56:35
07:57:10
07:57:34
07:57:44
07:57:46
07:58:18
07:59:19
07:59:19
07:59:33
07:59:40
08:00:00
08:00:12
08:00:52
08:01:20
08:01:55
08:02:21
08:02:21
08:02:55
08:03:46
08:04:17
08:04:29
08:04:37
08:04:56
08:05:22
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:07 EDT