Skip to content

Instantly share code, notes, and snippets.

@jozsefs
Last active April 19, 2016 19:50
Show Gist options
  • Save jozsefs/6b30d23ed275cc8f363e to your computer and use it in GitHub Desktop.
Save jozsefs/6b30d23ed275cc8f363e to your computer and use it in GitHub Desktop.
Renames all .js files to end with .babel.js in the directory and subdirectories
for i in `find . -iname "*.js"`; do a=$(basename $i .js); echo mv $i $a.babel.js; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment