I have about 3K .pdf documents named to the following filename convention:
BER_0020236-BER_0020293.pdf
the next file in the sequence could be something like
BER_4039464-BER_9384762.pdf
(the numbers are nonsequential).
What I need to do is preserve the first part of the filename BER_0020236
, while removing the rest and preserving extension .pdf
.
I thought I could use "rename" from the right-click options, select replace, and then input -*******
with a blank
replacement. This doesn't work - perhaps because finder isn't recognizing * as a wildcard? I can remove -
easily, but not characters after -
.
Is there an extant script somewhere that would do this, or is there something I'm missing from the finder option?