Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Indeed, Bash while read loop extremely slow compared to cat, why? but this could probably be refactored to use Awk, especially if your date stamps are in a sane machine-readable format. Commented Dec 29, 2022 at 19:46
  • 1
    I found out even a worse problem! dmesg -T doesn't report the timestamp accurately! It's 12 minutes behind and it could be days according to this: serverfault.com/questions/576139/… I will try other solution, thank you all for helping me. Commented Dec 30, 2022 at 0:32