Answer the question
In order to leave comments, you need to log in
How to implement grep string search and replace with recursion?
Tell me how to implement a search and replace a string with recursion.
They suggested an option how to do a search
grep -r --include=*.php "some-words" /path
Tell me how to do it now and replace the line with another one.
Thanks
Answer the question
In order to leave comments, you need to log in
grep -rln --include=*.php "old-word" /path | xargs [email protected] sed -i 's/old-word/new-word/g' @
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question