title: BASH script with a $ not saving correctly
body: <p>I have a bash script, which I run doing the following <code>sudo ./test</code></p>
  
  <p>The bash script needs to create a repo, and save the following data in it.</p>
  
  <p>So, this is the bash script:</p>
  
  <pre><code>#!/bin/bash
  echo "Inputing data... " 
  echo "[mongodb-org-3.2]
  baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/" &gt; /etc/yum.repos.d/mongodb-org.repo 
  </code></pre>
  
  <p>However, because the releasever has a $ in front of it, the script save the text like this:</p>
  
  <pre><code>[mongodb-org-3.2]
  baseurl=https://repo.mongodb.org/yum/redhat//mongodb-org/3.2/x86_64/
  </code></pre>
  
  <p>Instead of like this:</p>
  
  <pre><code>[mongodb-org-3.2]
  baseurl=https://repo.mongodb.org/yum/redhat/$c/mongodb-org/3.2/x86_64/
  </code></pre>
  
  <p>Any idea how I can treat the <code>$releasever</code> as text rather than a variable?</p>
  
  <p>I tried putting double quotes around it however that still does not work. I am new to bash scripting so any help appreciated.</p>
  
  <p>Thanks! </p>