Find all files in the current directory and its subdirectories, and for each file, make a backup copy with the extension ".bak" and replace all occurrences of "to_find" with "to_replace".
find ~ -type f | xargs -n 1 sed -i.bak -e 's/to_find/to_replace/g'