Created
June 18, 2017 14:12
-
-
Save unimonkiez/e913a69fbaf73af75f4b9673b7a27b1e to your computer and use it in GitHub Desktop.
Replace all js files containing jsx code to jsx extension
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
find src -type f -name '*.js' | xargs grep -c '/>' $1 | awk '!/:0/' | sed -r 's/\.js.+//g' | xargs -I file echo file.js file.jsx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment