title: shell script to read property in an array from property file
body: <p>conf.properties file have contents like this:</p>
  
  <pre><code>src1=abc
  dest1=xyz
  
  src2=123
  dest2=456
  
  ...
  </code></pre>
  
  <p>The below shell script is accessing the src and dest properties from conf.properties file.</p>
  
  <pre><code>. /tmp/conf.properties
  
  echo "$src1"
  echo "$dest1"
  
  echo "$src2"
  echo "$dest2"
  </code></pre>
  
  <p>Now, there could be any number of src and dest properties in the file.</p>
  
  <p>How to write a code to read all the src and dest from the property file into an array.</p>