title: Bash don't replace $
body: <p>I want to write a bash script which creates other bash scripts. But when I do</p>
  <p><code>echo &quot;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/SOME/PATH&quot; &gt;&gt; NEWFILE.sh </code></p>
  <p>it already replaces <code>$LD_LIBRARY_PATH</code> in the first script.
  So in NEWFILE.sh I only get:</p>
  <p><code>export LD_LIBRARY_PATH=:~/SOME/PATH</code></p>
  <p>But i want that in the NEWFILE.sh there's still:</p>
  <p><code>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/SOME/PATH</code></p>
  <p>So it gets replaced, when running NEWFILE.sh. I hope this makes sense. Thank you for your help</p>