Find the last occurrence of a string by specific keyword

  • Thread starter Thread starter HisKingdom
  • Start date Start date
H

HisKingdom

Guest
For example the text file length of lines updates every few seconds, I would like to find the last occurrence for a specific string

Here is a sample of how the text file looks.

Plan: ofeachday: - time: Noon [accepted]

The "time" variable will change such as "Noon" will be something else, and I don't what what will it be.

So I would like to read it to the console. Any suggestions are appreciated.

Continue reading...
 
Back
Top