title: Strip new line characters within a quoted string in unix
body: <p>I have a text file that goes like this:</p>
  
  <pre><code>abc 123 xyz
  "abc
  123" xyz
  </code></pre>
  
  <p>I want to replace new lines with a space (' ') if the new line occurs within a quoted string. So I want output:</p>
  
  <pre><code>abc 123 xyz
  abc 123 xyz
  </code></pre>
  
  <p>Is there a way to write a program in Unix for this?</p>