Hi guys,
ok this is a tough one to explain, but I'll try my best:
I have a CSV file in the format "$date,$val ue"
what I want to do, is work through the file line by line (I guess piping through AWK to get $date and $value), and while $date does not change add $value to a running total $total$i
when $date changes $i increments so $total$i is a new variable ($total1 becomes $total2)
does this make sense and is it possible?
thanks in advance
ok this is a tough one to explain, but I'll try my best:
I have a CSV file in the format "$date,$val ue"
what I want to do, is work through the file line by line (I guess piping through AWK to get $date and $value), and while $date does not change add $value to a running total $total$i
when $date changes $i increments so $total$i is a new variable ($total1 becomes $total2)
does this make sense and is it possible?
thanks in advance
Comment