shit
This commit is contained in:
commit
01a9e86575
64 changed files with 2284 additions and 0 deletions
18
scripts/timer
Normal file
18
scripts/timer
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
s=0
|
||||
m=0
|
||||
h=0
|
||||
|
||||
while : ; do
|
||||
sleep 1s
|
||||
if [[ $s == 60 ]]; then
|
||||
m=$((m+1)); s=0
|
||||
elif [[ $m == 60 ]]; then
|
||||
h=$((h+1)); m=0
|
||||
fi
|
||||
|
||||
s=$((s+1))
|
||||
clear
|
||||
echo "$h:$m:$s"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue