Find a temporary directory that was created, search for any files with the name ending in ".txt" and copy them to the Documents folder in the user's home directory.
find "$(mktemp -d)" -iname "*.txt" | xargs -I {} cp {} -t ~/Documents