I have a requirement to change the value of a parameter in a configuration file at a certain time before a particular script (python script) runs so that it outputs debug logs for the script.
There are lots of other parameters in the file but i wnat to change only this particular parameter.
From
SQL_TRACE=False
To
SQL_TRACE=True
How can this be done in awk or sed ??
---------- Post updated at 04:35 PM ---------- Previous update was at 04:12 PM ----------
I got it. Thanks
/bin/sed 's/SQL_DEBUG=False/SQL_DEBUG=True/' filename > /tmp/$$
mv /tmp/$$ filename