I'm trying to add version numbers to all javascript files in a directory so that changes to the files won't be cached by our users.
How can I move all Javascript files that are in several directories within one directory?
With the example file structure:
js/
--home/
----main.js
--apps/
----main.js
--handlers.js
--ajax.js
I would like to do something like git mv -r js/*.js js/*.1.js
to append a .1
to the filenames. Obviously there isn't a flag for recursion for git mv, so I'm wondering what my options are to do something similar.