Created
July 21, 2018 15:03
-
-
Save sagax/cacf4dc71631ef677e07d5b6fa16fb48 to your computer and use it in GitHub Desktop.
bash cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date -d "$(date +%Y/%m/%d)-10 day" +%Y/%m/%d # => 2018/07/11 | |
date -d "$(date +%Y/%m/%d)-0 day" +%Y/%m/%d # => 2018/07/21 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment