Search recursively in all files with the extension .log in the /tmp directory for strings that match the pattern of an email address and output only the matching strings.
grep -rnEoa '[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}' /tmp/*.log