title: Shell Script Appending Ignores Variables
body: <p>could really use some help with an assignment.
  What I am trying to do is write a program in Terminal, without using any editors. When appending to the file to write it, every time there is a $x, it gets ignored and only appends the rest of the code.</p>
  
  <pre><code>echo $test hello &gt;&gt; sample.sh
  </code></pre>
  
  <p>Only appends</p>
  
  <pre><code>hello
  </code></pre>
  
  <p>Thank you so much!</p>