in reply to Re: efficient way to read a file in reverse
in thread efficient way to read a file in reverse
Glad you enjoyed it! I omitted the first bit of the code where I do the timestamps for brevity's sake, but yes, the purpose is to look for the last 24 hours of logs for any thermal throttling messages. Thanks for the code, I think that will be quicker for me to adapt than the original File::ReadBackwards (I'll dig into 'tie filehandle' when I get a chance sometime), and there's some things new to me in your example as well which look interesting.
Cheers,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: efficient way to read a file in reverse
by tybalt89 (Monsignor) on Jan 07, 2021 at 21:05 UTC |