Author Topic: Renaming large number of files  (Read 636 times)

Offline Frank

  • Full Member
  • ***
  • Posts: 174
    • View Profile
    • Frank Fitzpatrick Photography
Renaming large number of files
« on: August 26, 2021, 07:13:02 AM »
I accidently rename a number of files on ingest with the same name separated by an underscore. I now have files named _DSC5273100_DSC5273,_DSC5273101_DSC5273......

How do I get rid of the first part of the file name so that I have only DSC5273, DSC5274......

I am also trying to rename a number of files with underscore then filename for example _DSC12345 to become DSC12345

Thanks for any help.


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 23356
    • View Profile
    • Camera Bits, Inc.
Re: Renaming large number of files
« Reply #1 on: August 26, 2021, 08:56:05 AM »
Frank,

I accidently rename a number of files on ingest with the same name separated by an underscore. I now have files named _DSC5273100_DSC5273,_DSC5273101_DSC5273......

How do I get rid of the first part of the file name so that I have only DSC5273, DSC5274......

I am also trying to rename a number of files with underscore then filename for example _DSC12345 to become DSC12345

See: https://docs.camerabits.com/support/solutions/articles/48001077381-variable-substring-extraction

For your specific first example, you would use:

{filenamebase:-7}

For your second example, you would use:

{filenamebase:-8}

HTH,

-Kirk

Offline MegMac

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Re: Renaming large number of files
« Reply #2 on: October 05, 2021, 08:07:14 AM »
you could also use Find & Replace. You don't have to replace the underscore with anything.