Find all files with the extension ".log" in any directory between two and four levels deep and give them read and execute permissions for all users.
find . -mindepth 2 -maxdepth 4 -name '*.log' -exec chmod a+rx {} \;