See logtail2(and its manpage), which save an offset and allow you to read the file only from the last line which was read.
You can modify it to get your goal, or pipe it to a simple perl script
Regards,In reply to Re: Find error message starting at line after last error
by i5513
in thread Find error message starting at line after last error
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |