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]
markdown guide
 
 

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?

 

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

 

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