This is repeated for three sessions for each of subj_{01..026}
Is there a way of copying the above files (and directory structure) from one location to another
There are multiple other files/directories in each session folder so previously have copied over each subject's data then laboriously deleted the files/folders I dont need in the new location
Am touched you think I am young enough to be doing homework!
I am a 34 year old PhD student. Trying to do some image analysis and find shortcuts so I can get home to see my family before midnight tonight!
Thanks!
Not sure I got all of it...
If you wish to move /subj_1/session_1/AAA/sample.txt, subj_1/session_1/AAA/test.txt for dir1 to dir2 that have the same tree organisation then you could put the common part of PATH in a variable and use it to move:
There is no way that we can write a script that will read your mind to figure out which files are to be moved. If you can give us an algorithm that describes whether or not a file is to be moved, we can help turn your algorithm into code. Otherwise, I don't see how we can help.