title: Merge multiple lines between same pattern into a single line using awk/sed
body: <p>I have some log files with some information as below</p>
  
  <pre><code>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
  </code></pre>
  
  <p><strong>Desired Output</strong></p>
  
  <pre><code>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
  </code></pre>
  
  <p>That means I want to merge all the lines between 2016-03-18</p>
  
  <p>I want every line to start with the 2016-03-18 as the pattern. </p>
  
  <p>Could someone help me do this using shell scripting preferably using awk/Sed?</p>