Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created May 2, 2014 07:32
Show Gist options
  • Save ptantiku/3ef85b4bae7431e77f72 to your computer and use it in GitHub Desktop.
Save ptantiku/3ef85b4bae7431e77f72 to your computer and use it in GitHub Desktop.
counting down time in minutes & seconds to a specific time (ex. 16:00)
watch -n 1 'diff=$(( $(date +%s -d "16:00") - $(date +%s) )); echo $(( $diff / 60 ))":"$(( $diff % 60 ))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment