DEV Community 👩‍💻👨‍💻

Discussion on: Quick sed lesson

Collapse
 
yonootz321 profile image
yonootz321

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

Collapse
 
ferricoxide profile image
Thomas H Jones II

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?

Collapse
 
k4ml profile image
Kamal Mustafa Author

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