replace strings in a template file
I am trying to automate Oracle Installation which includes parsing and altering the response file (.rsp). Here is a snippet of how it looks:
dev = Environment name,
11_1_1_7 is the version number. These values change depending on the hostname.
I am thinking of using regsubst for replacing the value of environment name and version number. The values will be passed as a variable to the class. My questions are:
- Where do I save the .rsp file (under templates folder) or anywhere on the disk.
- How do I read the .rsp file?
how we save the variables in the .rsp file so that it can take values from the variables pased to the class. is it like this:
Please let me know.