Skip to content

Instantly share code, notes, and snippets.

@ryasmi
Created February 23, 2018 11:10
Show Gist options
  • Save ryasmi/8be9a90cbbecc02692c3d6bd60b717ae to your computer and use it in GitHub Desktop.
Save ryasmi/8be9a90cbbecc02692c3d6bd60b717ae to your computer and use it in GitHub Desktop.
Script to rename all files recursively in a directory on a Mac.
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