How do I loop through mgz files and convert them to nii files using a shell script and freesurfer?
I need to automate converting mgz files into nii files using freesurfer. I have tried a number of different tactics, but for some reason my script wont loop through the files and they can’t be read. It isn’t a permission problem because I can do other commands on the files.