Skip to content

Instantly share code, notes, and snippets.

@cezarneaga
Created March 22, 2019 09:20
Show Gist options
  • Save cezarneaga/576236fb8f6a56a0d02cd2f02457fb4b to your computer and use it in GitHub Desktop.
Save cezarneaga/576236fb8f6a56a0d02cd2f02457fb4b to your computer and use it in GitHub Desktop.
changes files extensions to tsx
shopt -s globstar # enable ** globstar/recursivity
for i in **/*.js; do
[[ -d "$i" ]] && continue; # skip directories
mv "$i" "${i/%.js}.tsx";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment