Find all files with the extension .txt in the current directory and its subdirectories up to 3 levels deep and rename them by adding the extension .bak.
find . -mindepth 1 -maxdepth 3 -name '*.txt' | xargs -I {} mv "{}" {}.bak