I am working on a script that renames some files given to me by a client and automatically renames them to my naming convention.
Ex.: Files given by client:
Gallery-1-20160216.png Gallery-2-20160216.png Gallery-3-20160216.png Gallery-4-20160216.png
My naming convention:
Gallery_1.png Gallery_2.png Gallery_3.png Gallery_4.png
Here is the code I've written thus far:
REN Gallery-1* *Gallery_1.png
REN Gallery-2* *Gallery_2.png
REN Gallery-3* *Gallery_3.png
REN Gallery-4* *Gallery_4.png
While this works, I need to know if there is an easier way to write this, so that I can rename all 4 with one line. If there is a way to capture the numeric id of each "gallery" image.