I used an SQR to create a comma delimited .csv file with multiple rows of data. On each row there are four different sets of data. One set is a monetary value. I am trying to use a Linux script to pull the monetary value of each row off the .csv file and get a total monetary value for all rows of monetary value data. My problem is that the starting point of each monetary value varies depending information written prior to the monetary amount. Also, the ending point for each monetary amount varies as well. I am not sure how to approach this. I need assistance in writing some code that can pull off only the monetary values of each row and add it together with the next row and so on. Below is a sample of how the .csv file looks. The first column is the business unit, the second column is the project id, the third column is the monetary value, and the fourth is the project approver's name. Can you please assist.
EDJ,50007556,587850,"Project Approver"
EDJ,50007557,348462.25,"Project Approver"
CAN,50002657,8245.75,"Project Approver"
EJTC,00000010,198746.30,"Project Approver"