boot – Numbered JPG ~ move jpgs to new dir

I have asked this question before but unforutantly I lost access to my old email so i can’t find the thread again.

basically i have alot of sub directories with over 1000 images/jpgs and i want to move them all into one directory but the problem is the images have the same filename IMG1-IMG2-IMG3 and so on.

On my old thread there was a guy who sent me command with something with numbered ~ prefix ~ i think it was a mv command with ~ prefix which worked great? Can anyone tell me what the command is.