This question already has an answer here:
I have a log file which is continuously updating(new line added) after few time period.
I am fetching only error messages from the file in every 10 minutes.
Initially, at 1st time I fetched all line into a new file with a matching pattern "ERROR FOUND" using awk.
But after 10 min more new line has been added to a log file, so I want to read that log file where I left. I don't want to start from the beginning again.
Can any body suggest me best code or script for this?