I need to scan the file, searching for this string:
Once found, I then need to understand if that string is suffixed with the highest numerical value on the end and then set that name (less the path) to a variable.
There will always be 4 digits and the 'highest' one is always the latest, which I need to extract.
I have done this on batch with ease but struggling here. I am using bash.