Skip to content

Instantly share code, notes, and snippets.

@samhatoum
Created December 16, 2016 13:09
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 samhatoum/e01f426950ddef3d3da187a7d4c84c72 to your computer and use it in GitHub Desktop.
Save samhatoum/e01f426950ddef3d3da187a7d4c84c72 to your computer and use it in GitHub Desktop.
Rename all files bash one-liner
find . -name '*.es6.js' -print0 | xargs -0 -n1 bash -c 'mv "$0" "${0/.es6.js/.js}"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment