Skip to content

Instantly share code, notes, and snippets.

@ozantunca
Created September 22, 2019 10:13
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 ozantunca/7349dd6bf03b95aea7b41de5fb3c5e56 to your computer and use it in GitHub Desktop.
Save ozantunca/7349dd6bf03b95aea7b41de5fb3c5e56 to your computer and use it in GitHub Desktop.
ORG_FILES=`find app/**/*.js`
for i in $(echo $ORG_FILES | tr ";" "\n"); do
NEW_FILE=`echo $i | sed "s/\.js/\.ts/g"`
mv $i $NEW_FILE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment