Skip to content

Instantly share code, notes, and snippets.

@robolson
Created June 27, 2009 22:54
Show Gist options
  • Save robolson/137147 to your computer and use it in GitHub Desktop.
Save robolson/137147 to your computer and use it in GitHub Desktop.
Shell command to fix escaped spaces in filenames
# 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