Replace spaces with hyphens in Mac file names


/ Published in: Other
Save to your folder(s)

cd to directory, then run the line below to change any spaces in a filename to hyphens


Copy this code and paste it in your HTML
  1. for i in *; do mv "$i" "`echo $i | sed -e 's, ,-,g'`"; done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.