Renaming default Windows File Manager copies
Posted: 19 Aug 2017 19:06
Sorry to be dense, but I can't find this question already answered, nor can I find an answer in the voluminous help, or if it is there, I'm not recognizing it.
I'm writing a book. Each chapter is in its own folder, and I go through lots of small revisions. *** I write and edit, save, close, go into File Manager (before I found XY!), ctrl-c, ctrl-v, and let FM make its default name. Then I reopen the main file and repeat from ***. Some chapters have slightly different versions with a unique base name, so my folders all have bazillions of files like
ReversingShapingComputer.odt
ReversingShapingComputer - Copy.odt
ReversingShapingComputer - Copy (2).odt
ReversingShapingComputer - Copy (3).odt
ReversingShapingComputer - Copy (4).odt
ReversingShapingPaper.odt
ReversingShapingPaper - Copy.odt
ReversingShapingPaper - Copy (2).odt
ReversingShapingPaper - Copy (3).odt
ReversingShapingPaper - Copy (4).odt
I've figured out how to add the modified date in my preferred format to these filenames, using Batch Rename with the string
* <datem -yyyymmdd-hhmmss>
Woo-hoo!
I'd like to delete all the stupidly designed default copy strings, from the initial space to the closing parenthesis. In *nix systems, I could send
s/ .*)//
to sed, so I tried
' .*)' > ''
but the regexp is not valid in XY, and switching single to double quotes doesn’t work either. What am I doing wrong? And naturally, deleting the ' .*)' and appending the modified date at the same time would be great. :-)
(I could not find the list of regexp tokens, even in the massive PDF. Again, my apologies for being dense.)
I'm writing a book. Each chapter is in its own folder, and I go through lots of small revisions. *** I write and edit, save, close, go into File Manager (before I found XY!), ctrl-c, ctrl-v, and let FM make its default name. Then I reopen the main file and repeat from ***. Some chapters have slightly different versions with a unique base name, so my folders all have bazillions of files like
ReversingShapingComputer.odt
ReversingShapingComputer - Copy.odt
ReversingShapingComputer - Copy (2).odt
ReversingShapingComputer - Copy (3).odt
ReversingShapingComputer - Copy (4).odt
ReversingShapingPaper.odt
ReversingShapingPaper - Copy.odt
ReversingShapingPaper - Copy (2).odt
ReversingShapingPaper - Copy (3).odt
ReversingShapingPaper - Copy (4).odt
I've figured out how to add the modified date in my preferred format to these filenames, using Batch Rename with the string
* <datem -yyyymmdd-hhmmss>
Woo-hoo!
I'd like to delete all the stupidly designed default copy strings, from the initial space to the closing parenthesis. In *nix systems, I could send
s/ .*)//
to sed, so I tried
' .*)' > ''
but the regexp is not valid in XY, and switching single to double quotes doesn’t work either. What am I doing wrong? And naturally, deleting the ' .*)' and appending the modified date at the same time would be great. :-)
(I could not find the list of regexp tokens, even in the massive PDF. Again, my apologies for being dense.)