I have a piece of standard text having multiple lines and some format like below:
owner: oracle
date_conditions: 1
timezone: US/Eastern
std_out_file: "/app/local/job.log"
machine: rachost
I want to use this above text with machine and timezone being changed as per the need.
How can I use python to define this is a template and substitute various values?
I came across the substitution option in string.Template
. But this seems to be working with a single line only.