Month: November 2014

  • Remove spaces from filename in Mac

    This is just a small code to remove spaces from filenames in a Mac bash terminal: for i in *.nii; do mv “$i” “`echo $i | sed -e ‘s, ,,g’`”; done Change *.nii to find other type of files. Put a – or _ between the two commas before the g to substitute the space…