Find all files with the extension ".c" that have been modified in the last 5 minutes in any subdirectories of the current directory, and execute the command "grep -H 'main' '{}' \;" on each of them.
find ~/* -mindepth 2 -type f -mmin -5 -name "*.c" -exec grep -H 'main' '{}' \;