Created
July 19, 2023 09:18
-
-
Save johnhunter/94bed16b4d8f9dea496d52c12078d81b to your computer and use it in GitHub Desktop.
Find and git move files
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 all JS files in src/ to TS | |
find src -name '*.js' -exec bash -c 'git mv "$0" "${0%.js}.ts"' "{}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment