Read a file and put specific values to an array : <p>I am a newbie to bash scripting. I have a file containing some values. I want to put all the values of a specific key into an array in bash. The file looks like this.</p>

<pre><code>file.properties
name=val1
name=val2
name=val3
age=val4
</code></pre>

<p>I want to read this file and get all the name values into one array in bash.</p>
