Skip to content

Instantly share code, notes, and snippets.

@nardan
Last active October 10, 2019 13:11
Show Gist options
  • Save nardan/1a1f5eb8529fda3b818e4e60b7c86bf6 to your computer and use it in GitHub Desktop.
Save nardan/1a1f5eb8529fda3b818e4e60b7c86bf6 to your computer and use it in GitHub Desktop.
JS to TS
#!/bin/bash
find ./src -name "*.js" -exec sh -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