ExifTool Forum

ExifTool => Newbies => Topic started by: MrSoul on January 11, 2013, 01:00:31 PM

Title: Rename with digital suffix of original filename
Post by: MrSoul on January 11, 2013, 01:00:31 PM
Bonjour,

I am currently looking to move and rename my files in a particular template.

YYYY/mm/YYYYYmmddHHMMSS_3421.ext

Where 3421 = Digital suffix of original filename (DSC_3421.NEF)

exiftool -d /Users/MyAccount/Pictures/%Y/%m/%Y%m%d%H%M%S%%+.4nC.%%le "-filename<DateTimeOriginal" $1

It is possible to preserve only the digital suffix of my original file name ?

Thank you in advance.
Title: Re: Rename with digital suffix of original filename
Post by: Phil Harvey on January 11, 2013, 01:37:52 PM
Yes.  The format code %%-4f takes the last 4 digits from the file name.

- Phil
Title: Re: Rename with digital suffix of original filename
Post by: MrSoul on January 11, 2013, 02:15:33 PM
Thank you Phil !
My best wishes to you and your family !