Find all files with the extension .txt in the current directory and its subdirectories, and move them to the /home/user/ directory.
find $(pwd) -maxdepth 2 -type f -name "*.txt" -exec mv {} /home/user/ \;