Template file (b.txt)
--------------------
The host name is $var2.
The database name is $var3
The port is $var1
.
.
.
Now I want to replace the dummied values in template file(b.txt) with actual value which is in configuration file(a.txt). There are some 15 variable like. Can some tell me what is the best way of doing it. I am looking for something like search in configuration file get a variable and replace that in template file
I tried nawk and it worked. Now how can i pass input.txt and output.txt as a parameter to qwk. I tried -v option but it getting hanged. Can you please let me know