Skip to content

Instantly share code, notes, and snippets.

@johnhunter
Created July 19, 2023 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnhunter/94bed16b4d8f9dea496d52c12078d81b to your computer and use it in GitHub Desktop.
Save johnhunter/94bed16b4d8f9dea496d52c12078d81b to your computer and use it in GitHub Desktop.
Find and git move files
# rename all JS files in src/ to TS
find src -name '*.js' -exec bash -c 'git mv "$0" "${0%.js}.ts"' "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment