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
  • 69,223
  • 56
  • 216
  • 327
Solaris
  • 149
  • 2
  • 9
  • Could you please include an example? I don't understand what you want or how weeks are connected to it. – David Foerster Jul 18 '17 at 16:18
  • @DavidFoerster thank you for help but my problem got solved already ,i wanted to run a while loop that displays the date of next n number of sunday – Solaris Jul 18 '17 at 16:48
  • @DavidFoerster if possible you can delete the post , i got my answer from other post i made – Solaris Jul 18 '17 at 16:49

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
  • 69,223
  • 56
  • 216
  • 327
αғsнιη
  • 35,092
  • 41
  • 129
  • 192