title: Reading a file into variable without newlines
body: <p>I am not expert with bash but I would imagine this would be a simple script. I am trying to read a file with a few lines into a single bash variable <strong>without</strong> the new lines.</p>
  
  <p>My current script reads them in but keeps the presence of newlines</p>
  
  <pre><code>options=$(&lt;vm.options)
  echo "$options"
  </code></pre>
  
  <p>The file looks something like this:</p>
  
  <pre><code>-Random 1
  -Letters2
  -Occur 3
  -In
  -Passwords9
  </code></pre>
  
  <p>The script would read this into a variable where its output would look like:</p>
  
  <pre><code>-Random 1 -Letters2 -Occur 3 -In -Passwords9
  </code></pre>