I have a file with multiple tags with a number next to it e.g.
<Overall>4 other <tags> and data <Overall>2 other <tags> and data <Overall>3
How would I search through the file and count up all the numbers next to the overall tag? and then divide the number by the number of overall tags, to get an overall average.
So for example in the code above the average would be 3.
And then loop through all the files in the current directory and list the overall average for each file.