I am trying to execute the following command from bash shell:
sed -i "s/\(update.*\)where /\1 where primary_id = '$primary_id', /" *.php
As you see, there is a variable which I am inserting using sed -- i.e.
'$primary_id'. After executing the command, I see that the
''s are displayed, however
$primary_id is missing.
How can I handle special characters, such as