How do I replace a word in a line contains square brackets and dollar signs using sed? – Phpmyadmin
I want to replace in /usr/share/phpmyadmin/config.inc.php file $cfg['blowfish_secret'] = ''; to $cfg['blowfish_secret'] = 'blablabla'; with sed. I am trying this: sed -i "s/$cfg['blowfish_secret'] = '';/$cfg['blowfish_secret'] = 'blablabla';/g" /usr/share/phpmyadmin/config.inc.php but it doesn't change. How can I do this?