Created
January 14, 2019 18:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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