I am trying to run this in a terminal:
EXIFCMD="TestName"
EXIFDIR="/var/vols/Pics"
exiftool -d %Y/week%W/%A \
'-$EXIFCMD<${FileModifyDate}/%f%-c.%le' \
-r $EXIFDIR
But I got this result:
Warning: No writable tags set from /var/vols/Pics/IMG_20180723_203020.jpg
Warning: Invalid tag name '${exifcmd}' - /var/vols/Pics/IMG_20180723_203020.jpg
My intention is to change EXIFCMD=filename after the dry run, and rerun the same command.
Maybe something like this:
EXIFCMD="TestName"
EXIFDIR="/var/vols/Pics"
exiftool -d %Y/week%W/%A \
-$EXIFCMD'<${FileModifyDate}/%f%-c.%le' \
-r "$EXIFDIR"
Here I have quoted $EXIFDIR in case a directory name contains spaces.
- Phil
Thank you very much!
It works.