Good Morning kind nerds, I am struggling with something i’m sure is very easy to someone out there.
Essentially I want to search through a text log file for a string, if I find that string then I want to take the line BELOW the one I found and add it to a new array.
Then from that array I want to take the last 2 characters (which will be a number) in each element and total them up.
I have got this far (pathetic i know but in my defence I am not a coder for many many years)
this works sort of not sure what you want as a return if there is nothing found after that line or if the line after is null.
Also $test has everything in it and acts as an array. If you need to manipulate the data in each line further you would need some logic to split the lines. Hopefully the below gives you some help