title: How could I remove newlines from all quoted pieces of text in a file?
body: <p>I have exported a CSV file from a database.  Certain fields are longer text chunks, and can contain newlines.  What would be the simplest way of removing only newlines from this file that are inside double quotes, but preserving all others?</p>
  
  <p>I don't care if it uses a Bash command line one liner or a simple script as long as it works.</p>
  
  <p>For example,</p>
  
  <pre><code>"Value1", "Value2", "This is a longer piece
      of text with
      newlines in it.", "Value3"
  "Value4", "Value5", "Another value", "value6"
  </code></pre>
  
  <p>The newlines inside of the longer piece of text should be removed, but not the newline separating the two rows.</p>