title: Linux join 2 lines then enter new line based on delimiter
body: <p>I have been having a bit of a trouble trying to write a command that can merge 2 lines in a text file and then enter a new line where there is a delimiter.I have researched this thoroughly and the only thing i could find was to merge every second line then add a delimiter. This is not what i need, as i already have a delimiter in the file that separates every 2 lines i need to merge.
  The file currently contains the following (to get these results i am using the command at the top):</p>
  
  <pre><code>grep -C 2 "some text" somefile.log | grep -A1 "somepattern" | cut -d ' ' -f -1,2,3,4 | cut -c 1-19,118,150-163,130-132 ^C
  </code></pre>
  
  <p>This is the file:</p>
  
  <pre><code>2015-12-29 08:55:43 sg-somepattern
  2015-12-29 08:55:43 N22
  --
  2015-12-29 08:56:59 sg-somepattern
  2015-12-29 08:56:59 N22
  --
  2015-12-29 08:58:07 sg-somepattern
  2015-12-29 08:58:07 N22
  --
  2015-12-29 09:19:32 sg-somepattern
  2015-12-29 09:19:32 N22
  --
  2015-12-29 22:05:57 sg-somepattern
  2015-12-29 22:05:57 N22
  </code></pre>
  
  <p>Now the results i need should look like this:</p>
  
  <pre><code>2015-12-29 08:58:07 sg-somepattern 2015-12-29 08:58:07 N22
  2015-12-29 09:19:32 sg-somepattern 2015-12-29 09:19:32 N22
  2015-12-29 22:05:57 sg-somepattern 2015-12-29 22:05:57 N22
  </code></pre>
  
  <p>Having used <code>sed 'N;s/\n/ /'</code> has not worked and just joined every second line mixing in the lines with the delimiters also.</p>
  
  <p>Is there any way to achieve this with a built in command? I am not familiar with awk so i would struggle to write this on my own. Any help would be appreciated.</p>