nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Getting Yesterday's or Tomorrow's Day With Bash Shell Date Command on Linux / Unix

Posted: 15 Oct 2020 01:59 PM PDT


{Updated} When invoked without arguments, the date command displays the current date and time. Depending on the options specified, the date would set the date and time or print it in a user-defined format. However, how do you get yesterdays with bash shell script? What about tomorrows day?

The post Getting Yesterday's or Tomorrow's Day With Bash Shell Date Command on Linux / Unix appeared first on nixCraft.