summaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
Diffstat (limited to 'local')
-rwxr-xr-xlocal/bin/countdown.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/local/bin/countdown.sh b/local/bin/countdown.sh
new file mode 100755
index 0000000..fc2fc7f
--- /dev/null
+++ b/local/bin/countdown.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+target=1600000000
+delta=1
+
+while [ $delta != 0 ] ; do
+ unix=$(date +%s)
+ delta=$(( $target - $unix ))
+ echo $(date --date="@$unix") : $unix : $delta
+ sleep 1
+done