title: Reading data from properties file in shell script
body: <p>I am writing a shell script which reads data from a properties file and stores in into a local variable in shell script. The problem is when i am trying to read multiple properties from the file and form a string its getting over written</p>
  
  <pre><code>#!/bin/bash
  . /opt/oracle/scripts/user.properties
  
  echo $username
  echo $password
  echo $service_name
  
  conn=$username$password$service_name
  echo $conn
  </code></pre>
  
  <p>the values of username=xxxx password=yyyy and service_name=zzzz i expect the output to be</p>
  
  <pre><code>xxxxyyyyzzzz 
  </code></pre>
  
  <p>but instead of that i am getting the output as</p>
  
  <pre><code>zzzz
  </code></pre>
  
  <p>please tell me where am i doing the mistake ?</p>