title: All newlines are removed when saving cat output into a variable
body: <p>I have the following file</p>
  
  <pre><code>linux$ cat test.txt
  toto
  titi
  tete
  tata
  </code></pre>
  
  <p>Saving the cat output into a variable will discard the newlines</p>
  
  <pre><code>linux$ msgs=`cat test.txt`
  linux$ echo $msgs
  toto titi tete tata
  </code></pre>
  
  <p>How to keep the output containing the newlines in the variables?</p>