Find all files in the home directory (and its subdirectories) and either search for the text 'TEXT' and print the filename and line number where it was found, or replace the text 'OLD' with 'NEW' if 'TEXT' is found.
find ~/ -name \* -type f -and \( -exec grep -H -s 'TEXT' {} \; -or -exec sed -i '/TEXT/s/OLD/NEW/' {} \; \)