Skip to content

Instantly share code, notes, and snippets.

@doyle
Last active March 3, 2022 20:47
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 doyle/888d70cccae4e8fc39165e14c2e26f9b to your computer and use it in GitHub Desktop.
Save doyle/888d70cccae4e8fc39165e14c2e26f9b to your computer and use it in GitHub Desktop.
Recursively rename many files in a directory
find . -name *_foo.rb -exec rename 's/(.*)_foo.rb/\1_bar.rb/g' *.rb {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment