Closed gdevenyi closed 6 years ago
We can replace our calls to find with bash's new globbing syntax, should happen with #39
> shopt -s extglob > find input/atlas -maxdepth 1 -name '*_t1.mnc' -o -name '*_t1.nii' -o -name '*_t1.nii.gz' -o -name '*_t1.hdr' #Becomes > ls input/atlas/*(*_t1.mnc|*_t1.nii?(.gz)|*.hdr)
Also, stop using ls to generate lists, see http://mywiki.wooledge.org/BashGuide/Arrays
Also, enable nullglob http://mywiki.wooledge.org/glob#nullglob
Fixed.
We can replace our calls to find with bash's new globbing syntax, should happen with #39