Created
February 15, 2014 18:04
-
-
Save afternoon/9022899 to your computer and use it in GitHub Desktop.
Rename .js files to .ts
This file contains 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
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
find . -path ./node_modules -prune -o -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
if your sources are in ./ and you must skip node_modules
I had to do
find app/src -name "*.js" -exec sh -c 'mv "${0}" "${0/js/ts}"' {} \;
Thank you very much indeed!
+1, Thanks mate!
+1, Thanks
nice
Worked a charm, thanks
Thanks!
Thank you!
Thanks!
thanks my man
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!