huangwason
Programmer
I am going to write a loop, e.g
for (i=1; i<=10; i++)
do
echo "do test $i"
read
done
I would like to manipulate the loop manually. For instance, assume i=4 now, in the interval, when I press +, then perform next test 5, if I press -, then perform the previous test 3.
How to fulfill it? Thanks
for (i=1; i<=10; i++)
do
echo "do test $i"
read
done
I would like to manipulate the loop manually. For instance, assume i=4 now, in the interval, when I press +, then perform next test 5, if I press -, then perform the previous test 3.
How to fulfill it? Thanks