Is there a way to calculate the timestamp for the next next day of the week?
So, for example, from Monday, I would like to be able to run a code that calculates this from today on Wednesday 19/05/10, next Friday will be 21/05/10 and get a timestamp from it,
I know that the date command can parse a given string date according to the format, but I cannot figure out how to calculate "next Friday from today"
Any idea?
EDIT: i'm on mac
date bash
Ben
source share