grep replace in file code example
Example 1: grep find and replace
grep -rl 'oldString' ./ | xargs sed -i 's/oldString/newString/g'
Example 2: replace match in various grep match
find /path/to/files -type f -exec sed -i 's/oldstring/new string/g' {} \;