Minute Timer

Bash

MIT License

little scrpt that updates the screen every minute

Download (right click, save as, rename as appropriate)

Embed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash
echo "here we go."
j=1
while true
do
	for (( i=60; i>0; i-- ))
	do
		echo -ne "\r                "
		echo -ne "\r  $i... "
		sleep 1
	done
	echo -e "\r`date +%H.%M.%S`:  Another minute down. So far: " $j
	j=$((j + 1))
done