Skip to content

Instantly share code, notes, and snippets.

@toadkicker
Created February 5, 2020 21:27
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 toadkicker/c2d73d849ab699daede8619e5d67381f to your computer and use it in GitHub Desktop.
Save toadkicker/c2d73d849ab699daede8619e5d67381f to your computer and use it in GitHub Desktop.
Rename all file extensions in a directory recursively
/* Rename current directory's *.js files to *.tsx */
find . -name "*.js" -exec bash -c 'mv "$1" "${1%.js}".tsx' - '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment