Skip to content

Instantly share code, notes, and snippets.

@chris-erickson
Created July 29, 2013 16:37
Show Gist options
  • Save chris-erickson/6105643 to your computer and use it in GitHub Desktop.
Save chris-erickson/6105643 to your computer and use it in GitHub Desktop.
Using the terminal, determine number of days until some future date.
echo $(expr '(' $(date -j 05252013 +%s) - $(date +%s) ')' / 86400) "days until graduation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment