Move all scripts to 'src' directory

This commit is contained in:
2024-12-21 00:52:15 +00:00
parent b32ca11042
commit 1dc275d8a8
26 changed files with 0 additions and 0 deletions

13
src/stopwatch.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# Simple stopwatch script that simply counts the elapsed time in seconds.
start=$(date +%s)
stty -echo # hide keyboard input
while [ true ]
do
time="$(($(date +%s) - $start))"
printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
sleep 1s
done