Skip to content

Instantly share code, notes, and snippets.

@akilism
Created August 4, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akilism/bd6cffc31153e6bfbeda49ed399731a3 to your computer and use it in GitHub Desktop.
Save akilism/bd6cffc31153e6bfbeda49ed399731a3 to your computer and use it in GitHub Desktop.
replace " " in filenames with _
find ./ -depth -name "* *" -execdir rename 's/ /_/g' "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment