Posted By

flatearthcomms on 07/09/14


unix osx terminal

Versions (?)

Replace spaces with hyphens in Mac file names

 / Published in: Other

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

  1. for i in *; do mv "$i" "`echo $i | sed -e 's, ,-,g'`"; done

Report this snippet  

You need to login to post a comment.