Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Created April 6, 2017 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattmc3/769e9818833b25cc4061490becdf228f to your computer and use it in GitHub Desktop.
Save mattmc3/769e9818833b25cc4061490becdf228f to your computer and use it in GitHub Desktop.
Bash - rename directories
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