Find all files with the extension .jpg in any directory, and move them to a temporary directory in the home folder called "myfiles/tmp".
find / -iname "*.jpg" -exec mv '{}' $(mktemp "$HOME/myfiles/tmp/XXXXXX") \;