force rename not working?
Added by steve nieves about 8 years ago
Hi. I am running this version of exiv2: exiv2 0.23 001700 (64 bit build) Copyright (C) 2004-2012 Andreas Huggel.
on my 64 bit computer. My ultimate goal is to use exiv2 to recurse directories and rename pics based on exif date and time. The problem is some of the pics do not have any exif date or time (all zeros) and I understand that by using the -F option that exiv2 will will automatically rename those pics if necessary without prompting the user. I tried this on my test pics:
exiv2 rF "%Y%m-%d_%H-%M-%S" mv *.JPG
and receive the following:
%Y-%m-%d_%H-%M-%S: Failed to open the file
mv: Failed to open the file
exiv2: File `./F.JPG' exists. [O]verwrite, [r]ename or [s]kip? [[A[[A^Z
[11]+ Stopped exiv2 rF "%Y%m-%d_%H-%M-%S" mv *.JPG
If I run the same command but remove the "F" in -rF it works fine. What is wrong with the command? Thanks.
Replies (2)
RE: force rename not working? - Added by steve nieves about 8 years ago
not sure why the command I gave is correct in the editor but not correct in the preview or in the final post. The option should be -rF which is what I wrote.
RE: force rename not working? - Added by Andreas Huggel about 8 years ago
Hi Steve,
I suspect it is just a matter of changing the order of the options: try -Fr "%Y..." or -F -r "%Y...". ("Y%..." is the argument for the r option, not for the F option.)
Andreas