So I want to grab all certain files then duplicate them in the same folder/location but with a different extension. So far I have this from another question Copy all files with a certain extension from all subdirectories:
find . -name \*.js -exec cp {} newDir \;
I want to duplicate all those .js
files into .ts
e.g. duplicate functions.js
to functions.ts
wherever it may be.
more examples:
a/functions.js
b/test.js
c/another.js
index.js
to
a/functions.ts
b/test.ts
c/another.ts
index.ts