Last active
April 18, 2017 14:27
-
-
Save rodu/a59129a17662084e67aacc35109bdb0f to your computer and use it in GitHub Desktop.
Renames all .js to .ts in src folder
This file contains hidden or 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
#!/bin/bash | |
for file in $(find src -name "*.js");do git mv $file ${file/.js/.ts}; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove the
echo
from themv
command.