Created
June 27, 2009 22:54
-
-
Save robolson/137147 to your computer and use it in GitHub Desktop.
Shell command to fix escaped spaces in filenames
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
# Finds all the files with "%20" in their filename and replaces it with a plain space | |
find . -name "*%20*" -exec sh -c 'mv ${0} "${0//\%20/ }"' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment