Hi
I need to write a unix script which does the following
--------------------------------------
Properties file
Var1= XXX
Var2= YYY
--------------------------------------
-------------------------
File 1
Var1 = xxxx
Var2= yyyy
-----------------------
This script should search var1 and var2 in properties file and get those values and then search var1 and var2 in file1 and replace its value by the values achieved from first search. There are multiple file1.
Scenario is we want to change the values in properties file and then we want to this change is reflected in all other files( multiple file1 html files) .
Please can somebody help in this.
Thanks,
Krishan
I need to write a unix script which does the following
--------------------------------------
Properties file
Var1= XXX
Var2= YYY
--------------------------------------
-------------------------
File 1
Var1 = xxxx
Var2= yyyy
-----------------------
This script should search var1 and var2 in properties file and get those values and then search var1 and var2 in file1 and replace its value by the values achieved from first search. There are multiple file1.
Scenario is we want to change the values in properties file and then we want to this change is reflected in all other files( multiple file1 html files) .
Please can somebody help in this.
Thanks,
Krishan