I'm new to Sed and as you might imagine you can get lost early ...
I have the following variable in a PHP page I'm trying to change using a bash script:
$username='';
I want to give it an expanded variable value stored in $myUsername so that the final entry looks like:
$username='someName';
I believe I'm close with the following, but can't seem to cross that finish line ...
sed -i 's/"$username = ''".*$/\$username = /"${myUsername}/"' /var/www/settings.php
Thanks for the education / help