|
Date Help
Thanks for all ur inputs.
Looks like i have not state my requirement clearly.
I am aware of
date --date='next day' "+%Y%m%d" .
This will give next date of the unix system date as an output in YYYY/mm/dd format.
But what i am looking is to get the next day or next month for any date which the user is passing as a parameter.
something like this below
mydate=$1
date --date $mydate +%m%d%Y -d ýesterday (this does not work)
but i want next day or 3rd day of mydate
Is it possible ? if so pls give me the soln.
Thks
|