timer

un timer en shell - retour accueil

git clone git://bebou.netlib.re/timer
Log | Files | Refs |

commit 7f65e938eda99bb1f8b4bf8e817bd3f02a1ebcc2
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu, 11 Jan 2024 21:42:23 +0100

Premier commit

Diffstat:
Atimer | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/timer b/timer @@ -0,0 +1,8 @@ +#! /bin/sh + +sec=$(( $1*3600+$2*60+$3 )) +for i in $(seq $sec -1 0) +do + echo $i + sleep 1 +done