[IMG][IMG]1[IMG][/IMG] #!/bin/bash
for x in a b c d e f g h i
do
for y in 1 2 3 4 5 6 7 8 9
do
echo "current job is $x$y"
echo "input '1' to do next job"
echo "input '2' to skip the other jobs in current level"
echo "input '3' to terminate all jobs"
read action
if [ $action = 1 ]
then
echo "do next job"
continue
elif [ $action = 2 ]
then
echo "skip the other jobs in current level"
continue 2
elif [ $action = 3 ]
then
echo "terminate all jobs"
break 2
fi
done
done