This is the error that I receiveI am new to this, and I want to run the following script in shell but I am getting errors, COLUMN.nii file is the nifty file with a collection of masks with value ranging from 1 to 10 and I want to separate these masks into individual nifty file using this AFNI command in a for loop.
Any suggestions are welcomed, thanks K.
for i in {1..10};
do
3dcalc -a COLUMNS.nii -expr ‘equals(a, "${i}”)’ -prefix col_"${i}”.nii;
done