I want to replace string in file using sed/grep but the string is mingled with another strings
sed -i 's/php/vinu/g' test.yml # to replace string php with vinu
php phpehealth dophp testingphpin
In the above yml file contains multiple "php" strings, but I want to replace only "php" string with "vinu" and rest should not touch.
vinu phpehealth dophp testingphpin