title: How to access a variable that its name is made up by various strings in Shell Script?
body: <p>So, this is similar to passing parameter by reference. I want to access a variable (echo) that its name is a combined string from different strings. A simple example would be the following:</p>
  
  <pre><code>A1=999
  n="1"
  B="A$n"
  </code></pre>
  
  <p>What I want is that when I do <code>echo $B</code>, it would return <code>999</code>. Please let me know if further explanation is required. Thanks.</p>