I have a flat file with 3 columns Date, Page, and Page Count.
Each page has 2 versions of that page. A secure page and a non secure version(nlbwc)
I want to be able to take all the entries in the file add the page counts for that specific date, and output the file with a generic page name
So for example, The data below
2021-12-06 00:00:00,secure/WebPage1,1806
2021-12-13 00:00:00,secure/WebPage1,1563
2021-12-06 00:00:00,nlbwc/WebPage1,938
2021-12-13 00:00:00,nlbwc/WebPage1,894
2021-12-06 00:00:00,secure/WebPage2,1533
2021-12-13 00:00:00,secure/WebPage2,1351
2021-12-06 00:00:00,nlbwc/WebPage2,450
2021-12-13 00:00:00,nlbwc/WebPage2,360
Would Yield
2021-12-06 00:00:00,WebPage1,2744 (1806+938)
2021-12-13 00:00:00,WebPage1,2457 (1563+894)
2021-12-06 00:00:00,WebPage2,2744 (1533+450)
2021-12-13 00:00:00,WebPage2,2457 (1351+360)
(The 2 separate values for secure and nlbwc added together based on the date)
This output would be dumped into a csv
What is the best way to accomplish this?
Kindest Regards