read from file

I would like to read two log files and compare the numbers.
If the difference is more than 5, email should be sent.
I want to grep the latest string start with "Media Recovery" and capture the log number.
Here it is 6465.
I would like to compare it with another logfile.

This gets a little bit into regular expressions, but cuts down on the work that you have to do to extract the number. No need to use awk | cut | cut, since the regex pattern lets you pull out exactly the part you are looking for.