How to add an empty line after lines starting with a timestamp
0
votes
3
answers
266
views
The log viewing experience is so bad in my current company. I want to add new line to the logs that I've trimmed for a specific time duration. I want a new line after every date-time.
The date-time format is like this.
2023-10-03 15:34:37
I am aware
tr
can do this but I'm not sure how. I'll select the answer best anyone who can tell me how to write that new to a new file. Because of performance reasons. I don't prefer using vi, I use less as a logs reader.
Asked by achhainsan
(543 rep)
Oct 10, 2023, 05:16 AM
Last activity: Feb 26, 2025, 01:33 AM
Last activity: Feb 26, 2025, 01:33 AM