Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 7
    Short options are separated from their argument by a space: date --date=tomorrow +%Y%m%d date -d tomorrow +%Y%m%d Commented Aug 1, 2016 at 18:52
  • Thank you. Most helpful. I can see that you are correct on my machine. Commented Aug 1, 2016 at 18:54
  • 1
    @user4556274: Post that as an answer as it is obviously valid. Commented Aug 1, 2016 at 19:01
  • 1
    (1) Why are you saying echo `date --date=tomorrow +%Y%m%d` instead of just date --date=tomorrow +%Y%m%d?   (2) If you have a reason to use command substitution, you might want to change `…` to $(…) just for clarity — see this, this, and this. Commented Aug 3, 2016 at 22:11