Find all files in the home directory owned by root that have been modified in the last 30 minutes and execute the command 'sed -e 's/foo/bar/g' {} \;' on them.
find ~/ -type f -user root -mmin -30 -exec sed -e 's/foo/bar/g' {} \;