title: Converting a list into a single line string in bash
body: <p>I have a file that contains a list:</p>
  
  <pre><code>line1
  line2
  line3
  .
  .
  .
  </code></pre>
  
  <p>I want to join everything in a string in bash like so:</p>
  
  <pre><code>"line1", "line2", "line3", ...... (no comma at the end)
  </code></pre>
  
  <p>How do I do that?</p>
  
  <p>Edit: This is not a duplicate of <a href="https://stackoverflow.com/questions/2764051">How to join multiple lines of file names into one with custom delimiter?</a> because I am trying to get every item in double quotes while joining.</p>