DEV Community 👩‍💻👨‍💻

Discussion on: Quick sed lesson

yonootz321 profile image

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

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?

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?