My sub directories have the following naming scheme and I looking for a script to help me organize them.
aaa_xxxc_x or aaa_xxxc_xx
Where aaa = dif, dur, dir or glo
Where xxx = 001 --> ~450 not continuous
Where c = c
and where x or xx after c = 0 - 11
These are sub directory names, I'd like them place into folders based on
aaa with no c
and aaa with c
dif_001 - dif_450 in the same new sub directory
dif_001c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11 - dif_450c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11 into the same new sub directory
and the same thing for dur, dir and glo.
I'd appreciate annotate code / script.