Batch rename
Posted: 14 Jan 2022 19:07
I have a number of files in a folder:
myfile1-v2.txt
myfile2-v2.txt
myfile3-v2.txt
and want:
myfile1-v3.txt
myfile2-v3.txt
myfile3-v3.txt
Reading the help I would think "-v2/-v3" would work (replace -v2 with -v3) but it loses the root file name. Also "*-v2/*-v3" keeps the root but just appends -v3 instead of replacing -v2 with it.
What's the right way to do this?
Thanks, Rodney
myfile1-v2.txt
myfile2-v2.txt
myfile3-v2.txt
and want:
myfile1-v3.txt
myfile2-v3.txt
myfile3-v3.txt
Reading the help I would think "-v2/-v3" would work (replace -v2 with -v3) but it loses the root file name. Also "*-v2/*-v3" keeps the root but just appends -v3 instead of replacing -v2 with it.
What's the right way to do this?
Thanks, Rodney