I have the following folder structure
root folder
|-al2
|- GER.zip
|- ENG.zip
|-ww
|- GER.zip
|- ENG.zip
and so on. The folder names are random strings.
I want to sort the files in the following way:
root folder
|-ENG
|-al2
|- ENG.zip
|-ww
|- ENG.zip
|-GER
|-al2
|- GER.zip
|-ww
|- GER.zip
How can I automate this?
UPDATE: The folder names do not follow any kind of system. They are random strings.