Created
May 10, 2022 07:54
-
-
Save mdestafadilah/2ad7684e513c7cc10ee73fe962663914 to your computer and use it in GitHub Desktop.
RENAME JS TO JSX FOR VITEJS FROM CRA - REACTJS PROJECT
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
source: | |
1. https://medium.com/@sheniff/using-shell-to-rename-files-in-bulk-ee657f1a06 | |
2. https://gist.github.com/mustafaturan/32df16bb4c49fbd837f777000f4b9aa2?permalink_comment_id=3837386#gistcomment-3837386 | |
How to: | |
1. Create file, ex: renamejstojsx.sh copy paste from source:#1 | |
2. In your project open bash or Cmder as Terminal execution | |
3. Run ```bash renamejstojsx.sh``` | |
4. Done, sruput coffe again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this my example bash
for x in src/**/*.js; do mv "$x" "${x%.js}.jsx"; done