Skip to content

Instantly share code, notes, and snippets.

@rodu
Last active April 18, 2017 14:27
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 rodu/a59129a17662084e67aacc35109bdb0f to your computer and use it in GitHub Desktop.
Save rodu/a59129a17662084e67aacc35109bdb0f to your computer and use it in GitHub Desktop.
Renames all .js to .ts in src folder
#!/bin/bash
for file in $(find src -name "*.js");do git mv $file ${file/.js/.ts}; done
@rodu
Copy link
Author

rodu commented Apr 18, 2017

Remove the echo from the mv command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment