Skip to content

Instantly share code, notes, and snippets.

@verajosemanuel
Last active November 14, 2017 09:31
Show Gist options
  • Save verajosemanuel/e8bbbad114cd53b55adf2c5c6ef4d767 to your computer and use it in GitHub Desktop.
Save verajosemanuel/e8bbbad114cd53b55adf2c5c6ef4d767 to your computer and use it in GitHub Desktop.
#find and #rename supressing double dots or spaces in #files names #bash
find -name "*..*" -type f | rename 's/\.\././g' # double dot
find -name "* *" -type f | rename 's/ /_/g' # spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment