grep used only to find things, not to change them.
For modifications using a grep-like interface, you usually use sed . sed itself does not support any recursion - it only works on one file at a time. To add this, you usually use find to find files containing the template you want, then run sed to modify the file.
Jerry Coffin
source share