vi count.sh
chmod +x count.sh
bash count.sh
#! /bin/bash/
#nii_path
nii_path="/home/mcbrain/sharefolder/control/dti_1to210nii"
ls ${nii_path}|while read line;do
ls -lR ${nii_path}/$line/Dwi|grep "^-"|wc -l
done
vi count.sh
chmod +x count.sh
bash count.sh
#! /bin/bash/
#nii_path
nii_path="/home/mcbrain/sharefolder/control/dti_1to210nii"
ls ${nii_path}|while read line;do
ls -lR ${nii_path}/$line/Dwi|grep "^-"|wc -l
done