So, I want to write a bash script that are a sequence of steps and ill identify it as \"task#\". However, each step is only completed and can run as long as the user wants.
you can use read builtin command with option -t and -n
read
-t
-n
while : do # TASK 1 date read -t 1 -n 1 key if [[ $key = q ]] then break fi done # TASK 2 date +%s