Created
May 2, 2014 07:32
-
-
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)
This file contains hidden or 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
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