grep "'react'" -rn src/**/*.js | grep -o ".*\." | xargs -I {} git mv {}js {}tsx
find src -name "*.js" | grep -o ".*\." | xargs -I {} git mv {}js {}ts
Last active
December 1, 2022 10:34
-
-
Save binhapp/d020251091eace5b0f776f2075a46190 to your computer and use it in GitHub Desktop.
Rename js to tsx or ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment