Created
February 23, 2018 11:10
-
-
Save ryasmi/8be9a90cbbecc02692c3d6bd60b717ae to your computer and use it in GitHub Desktop.
Script to rename all files recursively in a directory on a Mac.
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
for file in $(find src -name '*.js'); do mv "$file" "${file%.js}.ts"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment