I regularly import photos from a flash drive and rename them with a script
to YYMODD_HHMMSS_
rename2date -k: Failed to open the file -r: Failed to open the file %y%m%d_%H%M%S_:basename:: Failed to open the file exiv2: File `./20190821_201219.nef' exists. [O]verwrite, [r]ename or [s]kip? ^C
directory contents after script: -rwxr-xr-x 1 paka users 57253957 Aug 21 16:12 20190821_201216.nef -rwxr-xr-x 1 paka users 56087308 Aug 21 16:12 20190821_201217.nef -rwxr-xr-x 1 paka users 54191672 Aug 21 16:12 20190821_201219.nef -rwxr-xr-x 1 paka users 54679653 Aug 21 16:12 aaa_3413.nef -rwxr-xr-x 1 paka users 59877177 Aug 21 16:12 aaa_3414.nef -rwxr-xr-x 1 paka users 59788737 Aug 21 16:12 aaa_3415.nef -rwxr-xr-x 1 paka users 58250749 Aug 21 16:12 aaa_3416.nef in exiv2 :basename: is the original filename w/o extension I understand the failure as the script is trying to write the next filename as an existing filename. What I do not understand is why ":basename:" is not being applied. If ":basename:" was being applied there would be no failure as there would be no duplication of filenames. and I tried escaping, \:basename\: tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org