Skip to content

Instantly share code, notes, and snippets.

@kgorskowski
Created January 13, 2016 22:31
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 kgorskowski/25b5ee712f75c0d2496c to your computer and use it in GitHub Desktop.
Save kgorskowski/25b5ee712f75c0d2496c to your computer and use it in GitHub Desktop.
change whitespace to underscore
find . -name "* *" -type d | rename 's/ /_/g'
find . -name "* *" -type f | rename 's/ /_/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment