13

Change value of a parameter in a file

view full story
linux-howto

http://www.unix.com – 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 Code: SQL_TRACE=False To Code: 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 Code: /bin/sed 's/SQL_DEBUG=False/SQL_DEBUG=True/' filename > /tmp/$$ mv /tmp/$$ file (HowTos)