Last active
January 31, 2019 09:29
-
-
Save timisenheim/8d825d428ff03e7c0e85 to your computer and use it in GitHub Desktop.
Replace spaces in filenames with underscores
This file contains 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
find -name "* *" -type d | rename 's/ /_/g' # directories | |
find -name "* *" -type f | rename 's/ /_/g' # files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment