Find all files of type 'f' (regular files) in the directory '/usr/local/bin' that do not have a name ending in '.jpg', and move them to a newly created temporary directory, keeping the same file name.
find /usr/local/bin -type f ! -name "*.jpg" -exec mv {} $(mktemp -d)/{} \;