Created
April 6, 2017 01:23
-
-
Save mattmc3/769e9818833b25cc4061490becdf228f to your computer and use it in GitHub Desktop.
Bash - rename directories
This file contains 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 . -depth -name "{{old}}" -type d -execdir bash -c 'mv {} {{new}}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment