i have a group of commands to be executed in a shell script
(each group has a lists of commands)
if any commands failed, program will be terminated.
i want to code my shell script, so that the next time it restarts, it will start from the point of group where it is terminated.
let's say i gave a number to every group.
so, next time when i start the script, i can give the process number as arguments to the shell script.
./myshell.sh 3 <-- starts from no 3 group
by default, it starts from the beginning.
may i know in what way i can write this?
how to give number to each group?
any tutorial help with example?
thanks