Skip to content

Instantly share code, notes, and snippets.

@bougui505
Last active August 29, 2015 13:56
Show Gist options
  • Save bougui505/9189141 to your computer and use it in GitHub Desktop.
Save bougui505/9189141 to your computer and use it in GitHub Desktop.
replace spaces in file name
find -name "* *" -type d | rename 's/ /_/g' # do the directories first
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