Skip to content

Instantly share code, notes, and snippets.

@sagax
Created July 21, 2018 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagax/cacf4dc71631ef677e07d5b6fa16fb48 to your computer and use it in GitHub Desktop.
Save sagax/cacf4dc71631ef677e07d5b6fa16fb48 to your computer and use it in GitHub Desktop.
bash cheatsheet
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