-1

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

$Today = $(date +%a)
#$Tomorrow = ?
Martin
  • 220
  • 3
  • 9

1 Answers1

2
$ date +%a --date="tomorrow"
Thu
EEAA
  • 109,363
  • 18
  • 175
  • 245
  • @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 '14 at 21:00