i'm trying to edit a php config file using sed in a bash script. I'm stuck on removing comments from particular lines. I want to uncomment line:
// $CFG->phpunit_prefix = 'phpu_';
I tried command that worked for me to replace/update paths:
"s%// $CFG->phpunit_prefix%$CFG->phpunit_prefix%" config.php
But it doesn't work in this case.
token_get_all()and friends directly? :)