Hi ,
Every day I'll get a file, in that I have to match today's file(20130619) third column to previous files (20130618,20130617), that is 124 present in previous files or not. If it matches then I have take the average values of 5th column of 124 from yesterdays and day before yesterdays file, then I have compare the average value to today's 124 value. Same thinks have to done for 952 and 502.
I can use shell script, Mysql. Please help me. Let me know if you have any doubt.
Today's file:
Col1 col2 col3 col4 col5
1 20130619 124 sa 150
2 20130619 952 sb 13453
3 20130619 502 sc 91
Yesterday's file:
Col1 col2 col3 col4 col5
1 20130618 124 sa 130
2 20130618 952 sb 11499
3 20130618 502 sc 100
Day before Yesterday's file:
Col1 col2 col3 col4 col5
1 20130617 124 sa 115
2 20130617 952 sb 12400
3 20130617 502 sc 97