title: How to read a .properties file which contains keys that have a period character using Shell script
body: <p>I am trying to read a properties file from a shell script which contains a period (.) character like below:</p>
  
  <pre><code># app.properties
  db.uat.user=saple user
  db.uat.passwd=secret
  
  
  #/bin/sh
  function pause(){
     read -p "$*"
  }
  
  file="./app.properties"
  
  if [ -f "$file" ]
  then
      echo "$file found."
   . $file
  
  echo "User Id " $db.uat.user
  echo "user password =" $db.uat.passwd
  else
      echo "$file not found."
  fi
  </code></pre>
  
  <p>I have tried to parse the file after sourcing the file but it is not working since the keys contains the "." character and there are spaces in that value also.</p>
  
  <p>My properties file always resides in the same directory of the script or somewhere in /usr/share/doc</p>