How to move files from deep subdirectory structure to toplevel directory on Linux
This command line approach is rather primitive but will not overwrite files.
Run this repeatedly until all files are gone:
mv --backup=numbered **/* . && rmdir *
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow