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

  • 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

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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.