Skip to content

Instantly share code, notes, and snippets.

@mrinterweb
Created March 22, 2015 20:04
Show Gist options
  • Save mrinterweb/666928cf94998a50a4d6 to your computer and use it in GitHub Desktop.
Save mrinterweb/666928cf94998a50a4d6 to your computer and use it in GitHub Desktop.
git rename by file pattern example
find . -iregex "\(.*\)\.js\.coffee$" -print | xargs ruby -e 'ARGV.each { |fn| `git mv #{fn} #{fn.sub(".js.", ".")}` }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment