Created
February 5, 2020 21:27
-
-
Save toadkicker/c2d73d849ab699daede8619e5d67381f to your computer and use it in GitHub Desktop.
Rename all file extensions in a directory recursively
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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