Find all files in the current directory, cut the extension from the filename, and move all files with the same extension to the directory with the same name as the extension.
find . -type f | cut -d'.' -f2 | xargs -n1 -I{} mv {}.* ../{}/