I am still a beginner for bash scripting.I am trying to loop copy command to run through multiple directories. I have set of directories, P1, P2, P3,..P60. Inside each directory there are three folders 'A', 'M' and 'out'. I want to copy files from A and M folders and paste them into "out" folder. Then repeat it through all the 60 directories.
'AL' has a file called PIL_CBR.nii and 'M' has a file called PIL_MO.nii.
Thank you!