Skip to content

Instantly share code, notes, and snippets.

@johnmurch
Created January 14, 2019 18:07
Show Gist options
  • Save johnmurch/a6d9b2d9e29219481d3020b7e9b29950 to your computer and use it in GitHub Desktop.
Save johnmurch/a6d9b2d9e29219481d3020b7e9b29950 to your computer and use it in GitHub Desktop.
Replace spaces with hyphens in Mac file names - cd to directory and run the following
for i in *; do mv "$i" "`echo $i | sed -e 's, ,-,g'`"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment