develooper Front page | perl.beginners | Postings from February 2002

FW: Help reqd. for collecting data

From:
Anand, Pankaj
Date:
February 5, 2002 12:51
Subject:
FW: Help reqd. for collecting data
Message ID:
87F879D35F05A148870CE44B32E5B41901429512@cs07mail.bestbuy.com
Further to below mentioned mail , How to collect ata for weekly basis , like


01/04 -- Data1	Data2	Data3
01/11 -- Data1 	Data2	Data3
01/18 -- Data1	Data2	Data3

And so on

One thing I can do is tail the last 7 lines of daily data file and put in
some file so that I have to run the job only in that file -
01/12	Data1	Data2	Data3
01/13	Data1	Data2	Data3
...
01/18	Data1	Data2	Data3	

Thanx


> -----Original Message-----
> From:	Anand, Pankaj [SMTP:Pankaj.Anand@bestbuy.com]
> Sent:	Wednesday, January 23, 2002 11:57 AM
> To:	'Beginners (E-mail)
> Subject:	Help reqd. for collecting data
> 
> Hi ,
> I am having one text file in this format 
> 	2002_01_17_2345 8 9 0 0 36 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0000 2 2 0 0 38 0 0 0 28 0 28 0 0 0 0
> 	2002_01_18_0015 8 9 0 0 38 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0030 2 3 0 0 46 0 0 2 30 0 28 0 0 0 0
> 	2002_01_18_0045 8 9 0 0 36 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0100 2 2 0 0 38 0 0 0 28 0 28 0 0 0 0
> 	2002_01_18_0115 8 9 0 0 46 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0130 2 3 0 0 36 0 0 2 30 0 28 0 0 0 0
> 	2002_01_18_0145 8 9 0 0 38 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0200 2 2 0 0 38 0 0 0 28 0 28 0 0 0 0
> 	2002_01_18_0215 8 9 0 0 46 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0230 2 3 0 0 36 0 0 2 30 0 28 0 0 0 0
> 	2002_01_18_0245 8 9 0 0 38 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0300 2 2 0 0 38 0 0 0 28 0 28 0 0 0 0
> 	2002_01_18_0315 8 9 0 0 46 0 0 2 24 0 22 0 0 0 0
> 	2002_01_18_0330 2 3 0 0 36 0 0 2 30 0 28 0 0 0 0
> This is collecting some result after every 15 minutes.I want to capture
> day
> specific data that should be like
> Date  		(Sum of all the values of particular coloumn) 
> 2002_01_18	100	100	20	....so on
> 
> I think with perl it'll be easy to do it...
> 
> Thanx
> 
> 
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About