Last active
November 14, 2017 09:31
-
-
Save verajosemanuel/e8bbbad114cd53b55adf2c5c6ef4d767 to your computer and use it in GitHub Desktop.
#find and #rename supressing double dots or spaces in #files names #bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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