If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Tomorrow's date in Unix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-08, 14:16
Bob4480 Bob4480 is offline
Registered User
 
Join Date: Feb 2004
Location: Los Angeles, CA
Posts: 28
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.
Reply With Quote
  #2 (permalink)  
Old 09-15-08, 05:57
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
what O/S
with gnu date
Code:
date -d 'now+1day'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On