I have a file with below format and I want handle using key, value pair.
Format:
table name=type of load
Sample Data:
student=full
department=delta
Pseudo code:
for(i=0;i<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
Can anyone how to get the key and values using shell script ?
Something like that?