To search and replace a string using grep at the linux CLI, you can do the following:
grep -rl "string-to-match" directory/ | xargs sed -i 's/string1/string2/g'
To search and replace a string using grep at the linux CLI, you can do the following:
grep -rl "string-to-match" directory/ | xargs sed -i 's/string1/string2/g'