Quick sed lesson

Kamal Mustafa on October 12, 2018

I was looking for a way to "grep" logs within certain time range. The first one I found (and use all the time since then) is using awk:- awk '... [Read Full]

What if there's no log with that specific time?

Good question. Obviously I made assumption on the time format, as that all logs I have. What kind of format do you have?

You can make the time less and less unique by eliminating the further-right time-fields. That said, once you start getting into the range where your granularity is hours, maybe you don't need to be cutting down your logs all that much, any way?

And after you find your way through sed, nothing is stopping you from adapting ed as your daily text editor.

code of conduct - report abuse