I have one file (one.cnf
) as:
KEY1="value1"
KEY4="VALUE4"
And another file (two.cnf
) as:
USER_HOST="local"
KEY1="abc"
PASS="lorem"
KEY2="ABC"
KEY4="XYZ"
I want to read the value for the corresponding variables from one.cnf
and replace in two.cnf
.
So that the final two.cnf
looks like
USER_HOST="local"
KEY1="value1"
PASS="lorem"
KEY2="ABC"
KEY4="VALUE4"
two.cnf
beforeone.cnf
.