All pastes #391047 Raw Edit

pitombera

public shellscript v1 · immutable
·published 2007-03-11 21:29 UTC
rendered paste body
#!/bin/bashh=$1m=$2s=$3cont=1printf "[%02d:%02d:%02d]\n" $h $m $swhile (($cont == 1)); do  sleep 1  s=$(($s - 1))   [[ $s < 0 ]] && s=59 && m=$(($m - 1))   [[ $m < 0 ]] && m=59 && h=$(($h - 1))  printf "[%02d:%02d:%02d]\n" $h $m $s  [[ $h == 0 && $m == 0 && $s == 0 ]] && cont=0done