I am trying to search for all files on my server called index.php and then use xargs to run sed to replace some text in those files.
The line I want to find is:

echo '';And after the replacement, it should look like this:

echo '';Therefore, I really only need to change '.$siteUrl.' to a single /
However, when I try to run this command from an SSH prompt (which I think is right):

find . -name "index.php" -print | xargs sed -i 's/\'\.\$siteUrl\.\'/"/"/g'it just drops me to a prompt of > and does not go any further...
I have also tried using the same sed command on a single file, which does the same. Can someone point me out where I have gone wrong?


Check Solution