I have some log files with some information as below
2016-03-18 00:07:43,482 SOME ERROR
OCCURED
API
LINE INFO
2016-03-18 00:07:44,482 OCCURED
authentication failure
2016-03-18 00:07:45,482 ERROR OCCURED
2016-03-18 00:07:46,482 NOT IMP OCCURED
Desired Output
2016-03-18 00:07:43,482 SOME ERROR OCCURED API LINE INFO
2016-03-18 00:07:44,482 OCCURED authentication failure
2016-03-18 00:07:45,482 ERROR OCCURED
2016-03-18 00:07:46,482 NOT IMP OCCURED
That means I want to merge all the lines between 2016-03-18
I want every line to start with the 2016-03-18 as the pattern.
Could someone help me do this using shell scripting preferably using awk/Sed?