I have a problem with calculating (PowerShell) the average of the following data from a txt file.
First row = EPOCH Time Second row = Response time (milliseconds) Third row = Name 1451603439,297,NA 1451603440,203,NA 1451604606,328,OP 1451604645,203,NA 1451604646,234,NC 1451604647,234,NA 1451604647,202,NA 1451604649,234,NA 1451604650,187,NA 1451604651,195,OP 1451604652,245,NA 1451604653,203,NA 1451604653,218,NA 1451604654,234,OP 1451604655,203,NA 1451604656,187,NA 1451604657,156,NA 1451604658,171,NA 1451604658,187,NA 1451604659,156,NA 1451604660,218,NA
I want to calculate the average response time per day per name.
The problem I face is that I first must calculate the epoch to normal date. Then take all the values from one day and take the average response time per name and then save this to another file and repeat this step until the end of the file.