I need to recursively look for all files containing a specific string so that I can copy a new file over the old one. E.g.:
If a file has the string "replace me":
-
find the full path of the files:
/dir/of/file/filename.php /dir/of/different/file/filename.php
-
replace the file with my new
filename.php
file.
It sounds simple, but I have wasted several hours on it getting nowhere.
Best Answer