Skip to content

Instantly share code, notes, and snippets.

@arodbits
Created August 28, 2017 20:52
Show Gist options
  • Save arodbits/43fcb41748a0f69e2ecde76bea193449 to your computer and use it in GitHub Desktop.
Save arodbits/43fcb41748a0f69e2ecde76bea193449 to your computer and use it in GitHub Desktop.
Replace filenames's matching character with another character.
find ./ -type f | while read file; do mv $file `echo $file | tr ' ' '_'` ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment