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 var1 and var2 values in properties file and then we want to run this script which reads the new values from properties files and then finds the var1 and var2 in multiple files and then updates the new value.
Please can somebody help in this.
Thanks in advance
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 var1 and var2 values in properties file and then we want to run this script which reads the new values from properties files and then finds the var1 and var2 in multiple files and then updates the new value.
Please can somebody help in this.
Thanks in advance
Krishan