0

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

Zanna
  • 72,312
Solaris
  • 149
  • 2
  • 9

1 Answers1

1

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
Zanna
  • 72,312
αғsнιη
  • 36,350