title: Assigning one variable to another in Bash?
body: <p>I have a doubt. When i declare a value and assign to some variable, I don't know how to reassign the same value to another variable. See the code snippet below.</p>
  <pre><code>#/bin/sh    
  #declare ARG1 to a
  a=ARG1
  #declaring $a to ARG2    
  ARG2=$`$a`
  
  echo &quot;ARG 2 = $ARG2&quot;
  </code></pre>
  <p>It should display my output as</p>
  <pre><code>ARG 2 = ARG1
  </code></pre>
  <p>...but instead the actual output is:</p>
  <pre><code>line 5: ARG1: command not found
  ARG 2 = $
  </code></pre>