I have a file named params.txt
and the content in the file will be
%test(dir='/home/spread',src=tab1,tgt=tab1,sch=xyz);
I need a shell script where i will be passing these 4 parameters while calling the script. File params.txt
has to be updated with whatever i pass.
For example,
params.sh '/tmp/category' emp emp hr
Before replacement:
%test(dir='/home/spread',src=tab1,tgt=tab1,sch=xyz);
After replacement:
%test(dir='/tmp/category',src=emp,tgt=emp,sch=hr);
I will be calling the script multiple times and the parameters need to be updated with whatever is passed while executing the script.