Find all files with the extension .c in the directory /dir and for each of them, replace the word "find" with the word "replace" using the sed command.
find /dir -iname '*.c' | xargs -I {} sed -i 's/find/replace/g' {}