Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Los Angeles, CA
    Posts
    28

    Unanswered: Tomorrow's date in Unix

    Is there an easy way / command to determine tomorrow's date in Unix?

    Basically, I need a way to run a shell on the last Thursday of the Month, only if tomorrow, Friday, is in the same Month. So if Thursday Falls on the 28, 29 or 30th... is there a command that will tell me what date + 1 day is?

    I know I could probably build a case statement with all the Months of the year, and account for Leap Year, but thought there might be an easier way.

    Bob.

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    what O/S
    with gnu date
    Code:
    date -d 'now+1day'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •