Ubuntu: Passing a date in an exiftool command


I am writing a bash script and want to get the date after every week. Is it possible?

My command

exiftool -exififd:dateTimeOriginal="2008:10:23 00" test.jpg  

So instead of 2008:10:23, I want to pass a date value then run a while loop to batch process files


you can use bash expression $(command) for command substitution as below within your command and format the date bar on your expectations.

exiftool -exififd:dateTimeOriginal="$(date + "%y:%m:%d") 00" test.jpg  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »