find . -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.jsx"' {} \;
# or
find ./ -depth -name "*.js" -exec sh -c 'mv "$1" "${1%.js}.jsx"' _ {} \;
Last active
December 2, 2022 22:20
-
-
Save maxgfr/deaa1c5fa102acf0c0d87ec2df8f1674 to your computer and use it in GitHub Desktop.
Rename JS file to JSX file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment