ExifTool Forum

ExifTool => Newbies => Topic started by: hansherlighed on October 01, 2019, 01:12:55 PM

Title: Is it possible to output old and new path when renaming photos?
Post by: hansherlighed on October 01, 2019, 01:12:55 PM
Hi,

I want to keep track of what names and paths my photos get when exiftool renames them using '-filename<FileModifyDate'.

The only way I have been able to get this info is if I use -v, but then I also get some other information which I do not want.

Example:
exiftool -q -v1 '-filename<FileModifyDate' -d /mnt/test/%Y%m%d_%H%M%S%%-c.%%le /mnt/test/Upload
Will give me an output like this

======== /mnt/test/Upload/20191001_184741-1.jpg
Setting new values from /mnt/test/Upload/20191001_184741-1.jpg
'/mnt/test/Upload/20191001_184741-1.jpg' --> '/mnt/test/20191001_184741.jpg'


I only want exiftool to output '/mnt/test/Upload/20191001_184741-1.jpg' --> '/mnt/test/20191001_184741.jpg' or similar, so that I can see the old and new path. Is that possible to do?

Thanks

//Morten
Title: Re: Is it possible to output old and new path when renaming photos?
Post by: Phil Harvey on October 01, 2019, 01:25:18 PM
Hi Morten,

Add this to the end of your command:

| grep -e '-->'

- Phil