Skip to content

Instantly share code, notes, and snippets.

@Lunrtick
Created May 16, 2018 09:27
Show Gist options
  • Save Lunrtick/99ee4e76123eb7525662c27395fd44e3 to your computer and use it in GitHub Desktop.
Save Lunrtick/99ee4e76123eb7525662c27395fd44e3 to your computer and use it in GitHub Desktop.
Bash recursively rename files by extenstion, here with js -> mjs
find . -iname "*.js" -exec rename -v 's/\.js$/\.mjs/i' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment