I have enough folders that in turn have their respective sub-folders, inside one of those sub-folders there is a subfolder_1_2, subfolder_2_2, subfolder_3_2 that contains files for example:
carpeta
│── Subcarpeta_Principal1
│ │──Subcarpeta_1_1
│ │ │── Subcarpeta_1_2
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
│── Subcarpeta_Principal2
│ │──Subcarpeta_2_1
│ │ │── Subcarpeta_2_2
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
│── Subcarpeta_Principal3
│ │──Subcarpeta_3_1
│ │ │── Subcarpeta_3_2
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
And what I want to know is if it is possible to move those files to their respective subfolders: Subfolder_Principal1, Subfolder_Principal2, Subfolder_Principal3 , as shown in the example:
carpeta
│── Subcarpeta_Principal1
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
│ │──Subcarpeta_1_1
│ │ │── Subcarpeta_1_2
│── Subcarpeta_Principal2
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
│ │──Subcarpeta_2_1
│ │ │── Subcarpeta_2_2
│── Subcarpeta_Principal3
│ │ │ │──Archivo.txt
│ │ │ │──Archivo.txt
│ │──Subcarpeta_3_1
│ │ │── Subcarpeta_3_2
How could I do it?