Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a shell script for backups and I need the Weekday of tomorrow.

$Today = $(date +%a)
#$Tomorrow = ?
share|improve this question

closed as off-topic by Jenny D, mdpc, dawud, Ward, Tom O'Connor Mar 21 at 9:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Jenny D, mdpc, Ward, Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 2 down vote accepted
$ date +%a --date="tomorrow"
Thu
share|improve this answer
    
@Martin - by the way, I didn't know this previously, but the answer was in the first link for a google search for "linux date tomorrow". –  EEAA Mar 19 at 21:00
    
Thanks, I googled Ubuntu shell date –  Martin Mar 19 at 21:06

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