Sed - Recursive

Grep lines matching certain keyword recursively. The result passed to xargs/sed which will only work on grep’s result:

grep -rl test ./* | xargs sed -i 's/test/test2/g'