ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: tiagoinacio on March 15, 2022, 07:39:32 PM

Title: Tag documentname
Post by: tiagoinacio on March 15, 2022, 07:39:32 PM
Hello. 
I needed to put the documentname = filename tag but without the _t0 that I always have at the end of the files. 

ex1: Testfile_t0
ex2: Imagefile_t0. 

can you help?

Thanks
Kind Regards
Title: Re: Tag documentname
Post by: StarGeek on March 15, 2022, 08:22:01 PM
Try
exiftool "-DocumentName<${Basename;s/_t0$//i}" /path/to/files/
Title: Re: Tag documentname
Post by: tiagoinacio on March 16, 2022, 04:29:25 AM
It worked. thanks for the quick response