I am parsing a log with this format:
06:36:12.230 [TASK1] details here
06:36:12.250 [TASK1] details here
06:36:12.260 [TASK1] details here
continuation here
06:36:12.360 [TASK1] details here
As you can see, some detail info contains one or more "\n" and it breaks my line-oriented parsing.
I need to get those continuation lines to be slapped back to its original line, like here:
06:36:12.230 [TASK1] details here
06:36:12.250 [TASK1] details here
06:36:12.260 [TASK1] details here continuation here
06:36:12.360 [TASK1] details here
I think there is a way to tell awk to use [0-9][0-9]:[0-9][0-9]:[0-9][0-9]
as a line separator RS, but not sure how to do it. Any pointers would be appreciated.
I am on Ubuntu 8, my awk is:
awk -W version
mawk 1.3.3 Nov 1996