In my path, I have totally 120 cases, each case has two files, the path looks like this:
00001_FA.nii.gz
00001_FA_grot.nii.gz
00002_FA.nii.gz
00002_FA_grot.nii.gz
.. ..
00120_FA.nii.gz
00120_FA_grot.nii.gz
I want to do fslstats 00001_FA_nii.gz -k 00001_FA_grot.nii.gz -m
then repeat the process till the 00120 case.
How to write the command? Thanks
for j in {00001..00120}; do
– steeldriver May 26 '20 at 17:55