title: Bash read array from an external file
body: <p>I have setup a Bash menu script that also requires user input.
  These inputs are wrote (appended to) a text file named var.txt like so:</p>
  
  <pre><code>input[0]='192.0.0.1'
  input[1]='username'
  input[2]='example.com'
  input[3]='/home/newuser' 
  </code></pre>
  
  <p>Now what I am trying to accomplish is to be able to read from var.txt from a script kinda like this:</p>
  
  <pre><code>useradd var.txt/${input[1]}
  </code></pre>
  
  <p>now I know that wont work just using it for an example.</p>
  
  <p>Thanks in Advance,
  Joe</p>