Find all files with the extension .txt in the current directory and its subdirectories up to a maximum depth of 3, and move them to a new file with the same name but with the extension .bak.
find . -maxdepth 3 -type f -iname '*.txt' | xargs -I {} mv {} {}.bak