Find all files with the name ending in ".log" that have been modified more than 5 minutes ago, and replace the string "old" with "new" in each of them.
find / -mmin +5 -iname *.log -exec sed -i s/old/new/g {} \;