title: Replace newlines in some lines with spaces using sed or awk
body: <p>I have a text log file with some events and I want to modify it to improve readability and printing format.</p>
  
  <p>I have:</p>
  
  <pre><code>$cat myfile 
  foo bar foo bar
  
  1.
  1. foo bar
  1:00
  
  10.
  3. foo bar
  3:02
  
  11.
  4. foo
  5:01
  
  foobar foo
  
  11.
  foobar foo
  3:48
  
  2.
  foobar foo
  4:18
  </code></pre>
  
  <p>What I want is:</p>
  
  <pre><code>$cat myfile
  foo bar foo bar
  
  1. 1. foo bar 1:00
  10. 3. foo bar 3:02
  11 4. foo 5:01
  
  foobar foo
  
  11. foobar foo 3:48
  2. foobar foo 4:18
  </code></pre>
  
  <p>Any help is appreciated! Thanks!</p>