https://multiplefilemaker.com/
grep find and replace

How do I find and replace in a text file?

grep find and replace
How do I find and replace in a text file?

first try to used sed on one file its sed 's/foo/bar/g' for replacing foo with bar. Then instead of grep i suggest find. Use it to find all files that need changes (*.php, ...