shell question: the "mv" command with multiply files
I have the following folder structure:
where is "subfolder1.1" is a subfolder under "folder1"
I have 2 files in each subfolder: "index.html", and "index_new.html"
I would like to rename "index_new.html" to "index.html", and by doing so to overwrite "index.html", and be left with only the "index.html" file (which content is what was in "index_new.html") in one command line.
this is basically what the "mv" command is used for.
why isn't this working for it:
mv folder[0-9]/subfolder*/index_new.html folder[0-9]/subfolder*/index.html
should I be using the "$0" var or am I completely off track with this?