Rename with digital suffix of original filename

Started by MrSoul, January 11, 2013, 01:00:31 PM

Previous topic - Next topic

MrSoul

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.

Phil Harvey

Yes.  The format code %%-4f takes the last 4 digits from the file name.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

MrSoul

Thank you Phil !
My best wishes to you and your family !