@chuculate no, I have not tried anything in particular yet, because since the huge burnout that was causedy by me trying to stay at an amazing school, I have not tried any big project. That being said, if I don't break that problem, it will sevearly damage both my hobby and employment potential.
Thanks for advice. ![]()
#!/bin/bash
hour=0
min=25
sec=0
while [ $hour -ge 0 ]; do
while [ $min -ge 0 ]; do
while [ $sec -ge 0 ]; do
#echo -n echoes without a trailing newline
echo -n "$hour:"
#mins and secs with leading zeroes
if [ $min -lt 10 ]
then
echo -n "0"
fi
echo -n "$min:"
if [ $sec -lt 10 ]
then
echo -n "0"
fi
echo -n "$sec"
#CL and CR for tidiness.
echo -ne "\033[0K\r"
let "sec=sec-1"
sleep 1
done
sec=59
let "min=min-1"
done
min=59
let "hour=hour-1"
done
#When the countdown reaches zero, you execute something.
#I prefer some music.
#mpv "/home/you/Música/anything.opus"