Find all files with the extension ".txt" in the current directory and its subdirectories and execute the command "grep" with the argument "random" on each of them.
find ~ -type f -name "*.txt" -exec grep "random" {} \;