Skip to content

Instantly share code, notes, and snippets.

@iampato
Created March 21, 2023 09:37
Show Gist options
  • Save iampato/a1f29ddb4420a8e5570483a13681d10c to your computer and use it in GitHub Desktop.
Save iampato/a1f29ddb4420a8e5570483a13681d10c to your computer and use it in GitHub Desktop.
Rename all .js files to .tsx in a next application
find ./src/pages ./src/modules -type f -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.tsx"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment