#TIL 3 - Rename all JS to TS files

find src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
I’m a full stack developer. I’m a fast learner and self-taught coder. I often take my time for researching and learning about hot and trending technology.
find src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;