Find all files with the extension .jpg in the current directory and its subdirectories up to a maximum depth of 3, and move them to the /tmp directory.
find . -maxdepth 3 -type f -iname '*.jpg' -exec mv '{}' /tmp \;