grep -rl 'old-string' ./ | xargs sed -i 's/old-string/new-string/g'
This will search for the string ‘old-string’ in all files relative to the current directory and replace ‘old-string’ with ‘new-string’ for each occurrence of the string in each file.