Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Created August 30, 2019 05:16
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 gabrieljoelc/b62dd81b4b36f782ed4299eb9e7f6c81 to your computer and use it in GitHub Desktop.
Save gabrieljoelc/b62dd81b4b36f782ed4299eb9e7f6c81 to your computer and use it in GitHub Desktop.
Run twice to rename all directories and then all files
find . -name 'NamespaceToKeep.NamespaceToDeleted*' -exec rename 's/NamespaceToKeep.NamespaceToDeleted/NamespaceToKeep/' '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment