title: How to handle a file using key,value pair in shell script
body: <p>I have a file with below format and I want handle using key, value pair.</p>
  
  <p><strong>Format</strong>:</p>
  
  <pre><code>table name=type of load    
  Sample Data:
  student=full
  department=delta       
  </code></pre>
  
  <p><strong>Pseudo code</strong>:</p>
  
  <pre><code>for(i=0;i&lt;arr.size;i++)      
  {                   
    if key.table_name=arr[i]               
    then  
      if value. Type_of_load=full      
       then      
           process some action
      else    
      if value.type_of_load=delta     
        then     
            process some action   
      fi  
    fi  
  fi  
  </code></pre>
  
  <p>Can anyone how to get the key and values using shell script ?</p>