find . -name '*.txt' -exec cat {} \;
This command finds all files that have an extension of .txt in the current directory and its sub directories and executes a cat command on them
find . -name '*.txt' -exec cat {} \;
This command finds all files that have an extension of .txt in the current directory and its sub directories and executes a cat command on them