Search the entire file system up to 5 levels deep for any files with the extension ".txt" and execute a search for the phrase "random string" in each of those files.
find / -maxdepth 5 -type f -name "*.txt" -exec grep "random string" {} \;