Find all files in the home directory with a ".conf" extension, print their names, and execute the command "sed -i 's/foo/bar/g' {}" on each of them.
find ~/ -name "*.conf" -print -exec sed -i 's/foo/bar/g' {} \;