summaryrefslogtreecommitdiff
path: root/local/bin/countdown.sh
blob: fc2fc7f707e1304e88e1b9fbd3c13195a4bdc161 (plain)
1
2
3
4
5
6
7
8
9
10
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