I have a large directory containing many subdirectories inside, in each subdirectory there are 4 different files (
What I want to do is to collect the same subdirectories but with only one file (
C1) inside. So the point is to delete the other files (
C4) and keep the same hierarchy of directories.
I want to have a simple script to do that because it´s impossible to do it manually since I have a very large main directory. The structure of the directory of just one simple case is : sampling/time´i´/C´j´. with i =0.0001:10 and j=1:4
I have this case on cluster.