Forked from timisenheim/replaceFilenameWhitespace.sh
Created
January 31, 2019 09:29
-
-
Save YourFriendCaspian/0e69c53c6b38f9743989c9ea6617690c to your computer and use it in GitHub Desktop.
Replace spaces in filenames with underscores
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
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